diff --git a/script.js b/script.js index ed11d6e..2904330 100644 --- a/script.js +++ b/script.js @@ -12,10 +12,6 @@ import init, { set_room_name, } from './pkg/pixsy.js'; -if (typeof WebAssembly !== "object") { - window.location = "./old/" -} - // 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) { let element = document.createElement('a'); @@ -60,6 +56,10 @@ function readFile(input, callback, type = "text") { } async function run() { + if (typeof WebAssembly !== "object") { + window.location = "http://tinybird.info/image-to-bitsy/old/" + } + await init(); const buttonAddImage = el("add");