setting up for potential hot reloadability

This commit is contained in:
booploops 2022-06-28 15:00:45 -07:00
parent 5309c987f0
commit 54515fea6b
2 changed files with 68 additions and 57 deletions

View file

@ -245,6 +245,7 @@ const app = new Vue({
notyf: notyf,
idleTimer: null,
idleState: false,
appVisible: true
},
watch: {
cfg: {
@ -276,6 +277,12 @@ const app = new Vue({
}, false)
},
methods: {
hotReload() {
this.appVisible = false
setTimeout(() => {
this.appVisible = true
}, 1000)
},
setWindowHash(route = "") {
window.location.hash = `#${route}`;
},