Skip to content

Commit

Permalink
small changes to avoid uglifyjs issue
Browse files Browse the repository at this point in the history
  • Loading branch information
kalwalt committed Jan 9, 2020
1 parent b79f471 commit 4a2fd7b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build/artoolkit.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/artoolkit_wasm.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions js/artoolkit.api.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
scope = window;
} else {
scope = self;
}
};
if (scope.artoolkit_wasm_url) {
function downloadWasm(url) {
var downloadWasm = function(url) {
return new Promise(function (resolve, reject) {
var wasmXHR = new XMLHttpRequest();
wasmXHR.open('GET', url, true);
Expand All @@ -17,7 +17,7 @@
wasmXHR.onerror = function () { reject('error ' + wasmXHR.status); }
wasmXHR.send(null);
});
}
};

var wasm = downloadWasm(scope.artoolkit_wasm_url);

Expand Down

0 comments on commit 4a2fd7b

Please sign in to comment.