},
created: function() {
window.doClick = (elemId) => { document.getElementById(elemId).click() };
- store.initialize();
- // NOTE: at this point, variants and tr(anslations) might be uninitialized
+ document.addEventListener("keydown", (e) => {
+ if (e.code === "Escape")
+ {
+ let modalBoxes = document.querySelectorAll("[id^='modal']");
+ modalBoxes.forEach(m => {
+ if (m.checked)
+ m.checked = false;
+ });
+ }
+ });
+ // NOTE: store.initialize(this.$route.path); doesn't work
+ store.initialize(window.location.href.split("#")[1].split("?")[0]);
},
}).$mount("#app");