From d2c53d67962be8392f65240d987324bbd2ed80b9 Mon Sep 17 00:00:00 2001 From: frostime Date: Tue, 16 Apr 2024 11:33:03 +0800 Subject: [PATCH] =?UTF-8?q?:fire:=20rm:=20=E9=87=8D=E5=A4=8D=E6=96=87?= =?UTF-8?q?=E6=A1=A3=E6=A8=A1=E5=9D=97=E7=9A=84=E6=B5=8B=E8=AF=95=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/func/dailynote/handle-duplicate.ts | 27 -------------------------- 1 file changed, 27 deletions(-) diff --git a/src/func/dailynote/handle-duplicate.ts b/src/func/dailynote/handle-duplicate.ts index a0953cd..76b3dc7 100644 --- a/src/func/dailynote/handle-duplicate.ts +++ b/src/func/dailynote/handle-duplicate.ts @@ -342,30 +342,3 @@ export async function checkDuplicateDiary(): Promise { }); return true; } - - -//TODO: 测试用,记得删除 -const addTestBtn = () => { - let btn = document.createElement('button'); - Object.assign(btn.style, { - position: 'fixed', - bottom: '50px', - right: '50px', - zIndex: '1000', - }); - btn.classList.add('b3-button', 'b3-button--primary'); - btn.innerText = '检查重复日记'; - btn.onclick = async () => { - let flag = await checkDuplicateDiary(); - if (flag) { - showMessage('Debug: 有重复日记'); - } else { - showMessage('Debug: 没有重复日记'); - } - }; - document.body.appendChild(btn); -} - -if (process.env.DEV_MODE === "true") { - addTestBtn(); -}