Skip to content

Commit

Permalink
Update WebCamera to be compatible with newer emscripten versions
Browse files Browse the repository at this point in the history
  • Loading branch information
ktran committed Jun 30, 2020
1 parent 2a557e8 commit dec9a5c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions utils/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,11 @@ function Utils(errorOutputId) { // eslint-disable-line no-unused-vars
}
else {
// WASM
cv['onRuntimeInitialized'] = () => {
cv.then(c => {
cv = c;
console.log(cv.getBuildInformation());
onloadCallback();
}
});
}
});
script.addEventListener('error', () => {
Expand Down

0 comments on commit dec9a5c

Please sign in to comment.