Disable auto-run just to be safe

This commit is contained in:
Surma
2018-05-17 22:33:21 +01:00
parent 7a5c8f5d6b
commit e38e7154a6

View File

@@ -20,10 +20,9 @@ export class MozJpegEncoder implements Encoder {
private api: Promise<ModuleAPI>;
constructor() {
this.emscriptenModule = new Promise(resolve => {
// TODO: See if I can just use m.then()?
const m = mozjpeg_enc({
// Just to be safe, dont automatically invoke any wasm functions
// noInitialRun: false,
noInitialRun: false,
locateFile(url: string): string {
// Redirect the request for the wasm binary to whatever webpack gave us.
if(url.endsWith('.wasm')) {