From d100473542aeb49925730bc55f0ebf676e875c22 Mon Sep 17 00:00:00 2001 From: Max Bradbury Date: Mon, 9 Nov 2020 11:55:11 +0000 Subject: [PATCH] try to check for webassembly in a different place --- script.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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");