Add router debugging keys
All checks were successful
Build Dev PWA / Build-PWA (push) Successful in 37s

Signed-off-by: Justin Georgi <justin.georgi@gmail.com>
This commit is contained in:
2024-10-16 09:16:19 -07:00
parent 1936d90550
commit 71b7b16bdd

View File

@@ -74,14 +74,14 @@
} }
}, },
async created () { async created () {
/* document.addEventListener('keydown', e => {
document.addEventListener('wheel', event => { if (e.code == 'KeyR') {
event.preventDefault() console.log(f7.views.main.router.history)
}, {passive: false}) }
document.addEventListener('touchmove', event => { if (e.code == 'KeyB') {
event.preventDefault() f7.views.main.router.back()
}, {passive: false}) }
*/ })
if (!window.cordova) { if (!window.cordova) {
const confText = await fetch('./conf/conf.yaml') const confText = await fetch('./conf/conf.yaml')
.then((mod) => { return mod.text() }) .then((mod) => { return mod.text() })