From fc4d3b24f622ed93aab0c8c1ff64975b539632dc Mon Sep 17 00:00:00 2001 From: Cutls Date: Wed, 26 Jun 2019 00:51:49 +0900 Subject: [PATCH] Fix: column-deleteing and url-analytics bug --- app/js/common/version.js | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/app/js/common/version.js b/app/js/common/version.js index bc0ff226..6637c483 100644 --- a/app/js/common/version.js +++ b/app/js/common/version.js @@ -4,6 +4,17 @@ function verck(ver) { var date = new Date(); var show = false if (localStorage.getItem("ver") != ver && localStorage.getItem("winstore")) { + //ちょっと削除とリンク解析の都合上アレ(s) + //対象外のアプデ:storageが20の最初まで"Usamin (18.6.5)" + if (!localStorage.getItem("usamin_18_6_5_flag")) { + localStorage.setItem("usamin_18_6_5_flag", true) + var multi = localStorage.getItem("column"); + var obj = JSON.parse(multi); + for (var i = 0; i < obj.length; i++) { + localStorage.removeItem("card_" + i); + } + } + //ちょっと削除とリンク解析の都合上アレ(e) localStorage.setItem("ver", ver); show = true console.log("%c Thank you for your update🎉", "color: red;font-size:200%;"); @@ -265,7 +276,7 @@ function storeDialog(platform, ver) { //逆にしてる if (!result.value) { localStorage.setItem("winstore", "winstore") - }else{ + } else { localStorage.setItem("winstore", "localinstall") } localStorage.setItem("ver", ver);