X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fmain.js;h=f1e23cbd08be315a5504c373072c1edbbd059229;hb=5f0dfe66a677f12107f1c3b7a6f4ad189e4a67d1;hp=2d855b8a2a284415dc25bd5dbe6b9fb092fed132;hpb=d641bec1b3b299e16b7da93f966dad0b0bd35088;p=vchess.git diff --git a/client/src/main.js b/client/src/main.js index 2d855b8a..f1e23cbd 100644 --- a/client/src/main.js +++ b/client/src/main.js @@ -17,12 +17,11 @@ new Vue({ { let modalBoxes = document.querySelectorAll("[id^='modal']"); modalBoxes.forEach(m => { - if (m.checked) + if (m.checked && m.id != "modalWelcome") m.checked = false; }); } }); - // NOTE: store.initialize(this.$route.path); doesn't work - store.initialize(window.location.href.split("#")[1].split("?")[0]); + store.initialize(); }, }).$mount("#app");