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