mirror of
https://github.com/GoogleChromeLabs/squoosh.git
synced 2025-11-18 03:29:17 +00:00
Adressing smaller review comments
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user