From 46726adfd8d34b6d6e0bd02ce20eef42bec63082 Mon Sep 17 00:00:00 2001 From: moshangqi <2509678669@qq.com> Date: Thu, 3 Aug 2023 16:35:14 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20lint?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/background/browser-action.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/pages/background/browser-action.ts b/src/pages/background/browser-action.ts index fe1fef3c..132239c1 100644 --- a/src/pages/background/browser-action.ts +++ b/src/pages/background/browser-action.ts @@ -2,13 +2,13 @@ import Chrome from '@/core/chrome'; import { GLOBAL_EVENTS } from '@/events'; function remindToRefreshPage(tabId: number) { - const msg = __i18n('你需要重新加载该页面才能剪藏。请重新加载页面后再试一次') + const msg = __i18n('你需要重新加载该页面才能剪藏。请重新加载页面后再试一次'); Chrome.scripting.executeScript({ target: { tabId }, - args: [ { msg } ], + args: [{ msg }], func: (args: { msg: string }) => { - window.alert(args.msg); - } + window.alert(args.msg); // eslint-disable-line + }, }); }