warn on missing webassembly

This commit is contained in:
Max Bradbury 2020-11-04 15:01:43 +00:00
parent 881f452957
commit e13bb37c83
1 changed files with 3 additions and 3 deletions

View File

@ -11,9 +11,9 @@ import init, {
set_rotate set_rotate
} from './pkg/tilesy.js'; } from './pkg/tilesy.js';
// if (typeof WebAssembly !== "object") { if (typeof WebAssembly !== "object") {
// document.getElementById("start").innerText = "Sorry - your browser does not support WebAssembly"; document.getElementById("start").innerText = "Sorry - your browser does not support WebAssembly";
// } }
// stolen from https://ourcodeworld.com/articles/read/189/how-to-create-a-file-and-generate-a-download-with-javascript-in-the-browser-without-a-server // stolen from https://ourcodeworld.com/articles/read/189/how-to-create-a-file-and-generate-a-download-with-javascript-in-the-browser-without-a-server
function download(filename, text) { function download(filename, text) {