File tree Expand file tree Collapse file tree 3 files changed +15
-12
lines changed
Expand file tree Collapse file tree 3 files changed +15
-12
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,8 @@ import { getLatestVersion } from "@src/api/version"
99import packageInfo from "@src/package"
1010import { t } from "@popup/locale"
1111import { UPDATE_PAGE } from "@util/constant/url"
12- import { IS_FIREFOX , IS_FROM_STORE } from "@util/constant/environment"
12+ import { IS_FIREFOX } from "@util/constant/environment"
13+ import { IS_FROM_STORE } from "@util/constant/meta"
1314
1415function showUpgradeButton ( latestVersion : string ) {
1516 const upgrade = document . getElementById ( 'upgrade-container' )
Original file line number Diff line number Diff line change @@ -34,13 +34,4 @@ export const IS_CHROME: boolean = isChrome
3434/**
3535 * @since 0.8.0
3636 */
37- export const IS_OPERA : boolean = isOpera
38-
39- const id = chrome . runtime . id
40-
41- /**
42- * @since 0.9.6
43- */
44- export const IS_FROM_STORE = ( isChrome && id === CHROME_ID )
45- || ( isEdge && id === EDGE_ID )
46- || ( isFirefox && id === FIREFOX_ID )
37+ export const IS_OPERA : boolean = isOpera
Original file line number Diff line number Diff line change 55 * https://opensource.org/licenses/MIT
66 */
77
8+ import { IS_CHROME , IS_EDGE , IS_FIREFOX } from "./environment"
9+
810/**
911 * @since 0.9.6
1012 */
@@ -18,4 +20,13 @@ export const FIREFOX_ID = "{a8cf72f7-09b7-4cd4-9aaa-7a023bf09916}"
1820/**
1921 * @since 0.9.6
2022 */
21- export const EDGE_ID = "fepjgblalcnepokjblgbgmapmlkgfahc"
23+ export const EDGE_ID = "fepjgblalcnepokjblgbgmapmlkgfahc"
24+
25+ const id = chrome . runtime . id
26+
27+ /**
28+ * @since 0.9.6
29+ */
30+ export const IS_FROM_STORE = ( IS_CHROME && id === CHROME_ID )
31+ || ( IS_EDGE && id === EDGE_ID )
32+ || ( IS_FIREFOX && id === FIREFOX_ID )
You can’t perform that action at this time.
0 commit comments