From f2c4d8367100c5cd484b9b94033728d7af33b5d1 Mon Sep 17 00:00:00 2001 From: strawberry42271 <2806566736@qq.com> Date: Thu, 23 Jan 2025 22:30:25 +0800 Subject: [PATCH] =?UTF-8?q?=E9=BB=98=E8=AE=A4=E7=AC=AC=E4=B8=80=E6=89=8B?= =?UTF-8?q?=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- project/plugins.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/project/plugins.js b/project/plugins.js index 63c7a55..d9697f6 100644 --- a/project/plugins.js +++ b/project/plugins.js @@ -243,8 +243,8 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 = }); core.registerEvent("setcgs", function (data) { - if (!data.img) { core.setLocalStorage('cgs', []) } else { - let a = core.getLocalStorage('cgs') ?? [] + if (!data.img) { core.setLocalStorage('cgs', ["theme.opus"]) } else { + let a = core.getLocalStorage('cgs') ?? ["theme.opus"] if (!a.includes(data.img)) a.push(data.img) core.setLocalStorage('cgs', a) }