From 66a58f1928607fc102dba83445c424de7d10a800 Mon Sep 17 00:00:00 2001 From: mvaneijgen Date: Tue, 23 Jan 2024 12:53:39 +0100 Subject: [PATCH] update pages --- assets/js/script.js | 15 ++++++++------- dist/drawsomething.html | 6 +++++- 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/assets/js/script.js b/assets/js/script.js index d20e5eb..e90ff52 100755 --- a/assets/js/script.js +++ b/assets/js/script.js @@ -6,7 +6,7 @@ const App = { return { // App info title: "Draw something", - version: "1.2", + version: "beta 1.2", // WLED JSON url: "", size: 10, @@ -241,6 +241,9 @@ const App = { mounted() { const host = window.location.host; this.url = `http://${host}/json`; + if (host === 'mvaneijgen.nl') { + this.ignoreNotice(); + } //--------------------------------// // 💾 Get everything from local storage //--------------------------------// @@ -252,12 +255,10 @@ const App = { // END 💾 Get everything from local storage --------------// this.mapUrlParameters() }, - created() { - const host = window.location.host; - if (host === 'mvaneijgen.nl') { - this.ignoreNotice(); - } - } + // created() { + // const host = window.location.host; + + // } }; createApp(App).mount("#app"); diff --git a/dist/drawsomething.html b/dist/drawsomething.html index e364ee0..43e215f 100644 --- a/dist/drawsomething.html +++ b/dist/drawsomething.html @@ -737,7 +737,7 @@

We could not fetch your settings at {{url}}

return { // App info title: "Draw something", - version: "1.2", + version: "beta 1.2", // WLED JSON url: "", size: 10, @@ -986,6 +986,10 @@

We could not fetch your settings at {{url}}

// END 💾 Get everything from local storage --------------// this.mapUrlParameters() }, + // created() { + // const host = window.location.host; + + // } }; createApp(App).mount("#app");