Skip to content

Commit

Permalink
simplify Emscripten shell.html
Browse files Browse the repository at this point in the history
  • Loading branch information
floooh committed Nov 21, 2024
1 parent b7f25d9 commit d91015d
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions webpage/shell.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
<script type='text/javascript'>
var Module = {
preRun: [],
postRun: [],
print: (function() {
return function(text) {
text = Array.prototype.slice.call(arguments).join(' ');
Expand All @@ -43,13 +42,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() {
console.log("onerror: " + event.message);
Expand Down

0 comments on commit d91015d

Please sign in to comment.