Explorar el Código

Fix error when loading WASM module via AJAX; close #326

phoboslab hace 6 años
padre
commit
67888f5cfc
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/wasm-module.js

+ 1 - 1
src/wasm-module.js Ver fichero

@@ -12,7 +12,7 @@ WASM.prototype.write = function(buffer) {
12 12
 
13 13
 WASM.prototype.loadFromFile = function(url, callback) {
14 14
 	this.onInitCallback = callback;
15
-	var ajax = new JSMpeg.Source.Ajax(url);
15
+	var ajax = new JSMpeg.Source.Ajax(url, {});
16 16
 	ajax.connect(this);
17 17
 	ajax.start();
18 18
 };