mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-15 06:35:20 -07:00
Clean up code
This commit is contained in:
parent
4bef634a9b
commit
8d0264f3af
1 changed files with 3 additions and 2 deletions
|
|
@ -23,7 +23,8 @@ export class StorkClient {
|
|||
return this.stork.search( this.name, query )
|
||||
}
|
||||
|
||||
// Loads the Stork executables into the browser.
|
||||
// Loads the Stork WASM and Index into the browser on first query
|
||||
// so that we don;t have to load them initially.
|
||||
async lazyQuery ( query ) {
|
||||
if ( !this.isSetup ) await this.setup()
|
||||
|
||||
|
|
@ -63,7 +64,7 @@ export class StorkClient {
|
|||
// This silly `then` call turns a [(void), (void)] into a (void), which is
|
||||
// only necessary to make Typescript happy.
|
||||
// You begin to wonder if you write Typescript code, or if Typescript code writes you.
|
||||
await Promise.all([initPromise, downloadPromise]).then()
|
||||
await Promise.all([initPromise, downloadPromise])
|
||||
|
||||
// Mark setup as complete
|
||||
this.setupState = 'complete'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue