chore: thunderbird
This commit is contained in:
@@ -17,6 +17,7 @@ import {
|
|||||||
CMD_TOGGLE_STYLE,
|
CMD_TOGGLE_STYLE,
|
||||||
CMD_OPEN_OPTIONS,
|
CMD_OPEN_OPTIONS,
|
||||||
CMD_OPEN_TRANBOX,
|
CMD_OPEN_TRANBOX,
|
||||||
|
CLIENT_THUNDERBIRD,
|
||||||
} from "./config";
|
} from "./config";
|
||||||
import { getSettingWithDefault, tryInitDefaultData } from "./libs/storage";
|
import { getSettingWithDefault, tryInitDefaultData } from "./libs/storage";
|
||||||
import { trySyncSettingAndRules } from "./libs/sync";
|
import { trySyncSettingAndRules } from "./libs/sync";
|
||||||
@@ -139,7 +140,7 @@ browser.runtime.onInstalled.addListener(() => {
|
|||||||
tryInitDefaultData();
|
tryInitDefaultData();
|
||||||
|
|
||||||
//在thunderbird中注册脚本
|
//在thunderbird中注册脚本
|
||||||
if (process.env.REACT_APP_CLIENT === "thunderbird") {
|
if (process.env.REACT_APP_CLIENT === CLIENT_THUNDERBIRD) {
|
||||||
registerMsgDisplayScript();
|
registerMsgDisplayScript();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -166,7 +167,7 @@ browser.runtime.onStartup.addListener(async () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//在thunderbird中注册脚本
|
//在thunderbird中注册脚本
|
||||||
if (process.env.REACT_APP_CLIENT === "thunderbird") {
|
if (process.env.REACT_APP_CLIENT === CLIENT_THUNDERBIRD) {
|
||||||
registerMsgDisplayScript();
|
registerMsgDisplayScript();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user