Skip to content

Commit

Permalink
Load tool if github pages
Browse files Browse the repository at this point in the history
  • Loading branch information
mvaneijgen committed Jan 23, 2024
1 parent 7270494 commit 17198c8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions assets/js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,10 @@ const App = {
// END 💾 Save everything to local storage --------------//
},
mounted() {
this.url = `http://${window.location.host}/json`;
if (thid.url === 'mvaneijgen.nl') {
const host = window.location.host;
console.warn(host);
this.url = `http://${host}/json`;
if (host === 'mvaneijgen.nl') {
this.ignoreNotice();
}
//--------------------------------//
Expand Down
6 changes: 4 additions & 2 deletions dist/drawsomething.html
Original file line number Diff line number Diff line change
Expand Up @@ -969,8 +969,10 @@ <h3>We could not fetch your settings at <i>{{url}}</i></h3>
// END 💾 Save everything to local storage --------------//
},
mounted() {
this.url = `http://${window.location.host}/json`;
if (thid.url === 'mvaneijgen.nl') {
const host = window.location.host;
console.warn(host);
this.url = `http://${host}/json`;
if (host === 'mvaneijgen.nl') {
this.ignoreNotice();
}
//--------------------------------//
Expand Down

0 comments on commit 17198c8

Please sign in to comment.