Adressing smaller review comments

This commit is contained in:
Surma
2018-07-16 13:55:32 +01:00
parent b310c97044
commit b15545402a
7 changed files with 9 additions and 11 deletions

View File

@@ -32,7 +32,7 @@ export default class WebpDecoder {
},
onRuntimeInitialized() {
// An Emscripten is a then-able that, for some reason, `then()`s itself,
// causing an infite loop when you wrap it in a real promise. Deleten the `then`
// causing an infite loop when you wrap it in a real promise. Deleting the `then`
// prop solves this for now.
// See: https://github.com/kripken/emscripten/blob/incoming/src/postamble.js#L129
// TODO(surma@): File a bug with Emscripten on this.

View File

@@ -11,6 +11,5 @@ export async function decode(file: File): Promise<ImageBitmap> {
}
export async function isSupported(): Promise<boolean> {
// TODO(@surma): Should we do wasm detection here or something?
return true;
}