|
@@ -389,16 +389,18 @@
|
|
|
setupLesson = function() {};
|
|
|
|
|
|
if (canvas) {
|
|
|
- canvas.addEventListener('webglcontextlost', function(e) {
|
|
|
+ canvas.addEventListener('webglcontextlost', function() {
|
|
|
// the default is to do nothing. Preventing the default
|
|
|
// means allowing context to be restored
|
|
|
- e.preventDefault();
|
|
|
+ // e.preventDefault(); // can't do this because firefox bug - https://bugzilla.mozilla.org/show_bug.cgi?id=1633280
|
|
|
addContextLostHTML();
|
|
|
});
|
|
|
+ /* can't do this because firefox bug - https://bugzilla.mozilla.org/show_bug.cgi?id=1633280
|
|
|
canvas.addEventListener('webglcontextrestored', function() {
|
|
|
// just reload the page. Easiest.
|
|
|
window.location.reload();
|
|
|
});
|
|
|
+ */
|
|
|
}
|
|
|
|
|
|
if (isInIFrame()) {
|