Skip to content

Commit

Permalink
update pages
Browse files Browse the repository at this point in the history
  • Loading branch information
mvaneijgen committed Jan 23, 2024
1 parent e25e37e commit 66a58f1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
15 changes: 8 additions & 7 deletions assets/js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const App = {
return {
// App info
title: "Draw something",
version: "1.2",
version: "beta 1.2",
// WLED JSON
url: "",
size: 10,
Expand Down Expand Up @@ -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
//--------------------------------//
Expand All @@ -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");
6 changes: 5 additions & 1 deletion dist/drawsomething.html
Original file line number Diff line number Diff line change
Expand Up @@ -737,7 +737,7 @@ <h3>We could not fetch your settings at <i>{{url}}</i></h3>
return {
// App info
title: "Draw something",
version: "1.2",
version: "beta 1.2",
// WLED JSON
url: "",
size: 10,
Expand Down Expand Up @@ -986,6 +986,10 @@ <h3>We could not fetch your settings at <i>{{url}}</i></h3>
// END 💾 Get everything from local storage --------------//
this.mapUrlParameters()
},
// created() {
// const host = window.location.host;

// }
};

createApp(App).mount("#app");
Expand Down

0 comments on commit 66a58f1

Please sign in to comment.