Fixup sdk.js deployment

This commit is contained in:
Surma
2019-02-22 14:06:24 +00:00
parent 2e478b323a
commit 7dd842a870
3 changed files with 32 additions and 15 deletions

View File

@@ -28,7 +28,8 @@ function addRemovableGlobalListener<
}
/**
* The API class contains the methods that are exposed via Comlink to the outside world.
* The API class contains the methods that are exposed via Comlink to the
* outside world.
*/
export class API {
/**
@@ -39,7 +40,8 @@ export class API {
/**
* Loads a given file into Squoosh.
* @param blob The `Blob` to load
* @param name The name of the file. The extension of this name will be used to deterime which decoder to use.
* @param name The name of the file. The extension of this name will be used
* to deterime which decoder to use.
*/
async setFile(blob: Blob, name: string) {
return new Promise((resolve) => {