Skip to content

Commit

Permalink
also cleanup webpage/wasm.html
Browse files Browse the repository at this point in the history
  • Loading branch information
floooh committed Nov 23, 2024
1 parent d91015d commit 4835374
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions webpage/wasm.html
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@
<script type="text/javascript">
var Module = {
preRun: [],
postRun: [],
print: (function() {
return function(text) {
text = Array.prototype.slice.call(arguments).join(' ');
Expand All @@ -73,13 +72,6 @@
text = Array.prototype.slice.call(arguments).join(' ');
console.error(text);
},
canvas: (function() {
var canvas = document.getElementById('canvas');
canvas.addEventListener("webglcontextlost", function(e) { alert('FIXME: WebGL context lost, please reload the page'); e.preventDefault(); }, false);
return canvas;
})(),
setStatus: function(text) { },
monitorRunDependencies: function(left) { },
};
window.onerror = function(event) {
console.log("onerror: " + event.message);
Expand Down

0 comments on commit 4835374

Please sign in to comment.