From 0621957592990a9c1177f207c09277aad1d314ef Mon Sep 17 00:00:00 2001 From: Gabe Date: Sun, 18 May 2025 00:34:20 +0800 Subject: [PATCH] chore: thunderbird --- src/background.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/background.js b/src/background.js index 86290c8..f0ade97 100644 --- a/src/background.js +++ b/src/background.js @@ -17,6 +17,7 @@ import { CMD_TOGGLE_STYLE, CMD_OPEN_OPTIONS, CMD_OPEN_TRANBOX, + CLIENT_THUNDERBIRD, } from "./config"; import { getSettingWithDefault, tryInitDefaultData } from "./libs/storage"; import { trySyncSettingAndRules } from "./libs/sync"; @@ -139,7 +140,7 @@ browser.runtime.onInstalled.addListener(() => { tryInitDefaultData(); //在thunderbird中注册脚本 - if (process.env.REACT_APP_CLIENT === "thunderbird") { + if (process.env.REACT_APP_CLIENT === CLIENT_THUNDERBIRD) { registerMsgDisplayScript(); } @@ -166,7 +167,7 @@ browser.runtime.onStartup.addListener(async () => { } //在thunderbird中注册脚本 - if (process.env.REACT_APP_CLIENT === "thunderbird") { + if (process.env.REACT_APP_CLIENT === CLIENT_THUNDERBIRD) { registerMsgDisplayScript(); }