mirror of
https://github.com/FULU-Foundation/CRW-Extension.git
synced 2026-05-13 00:52:10 -04:00
16 lines
414 B
TypeScript
16 lines
414 B
TypeScript
export type TargetBrowser = "chrome" | "firefox";
|
|
|
|
export const browser: TargetBrowser =
|
|
process.env.BROWSER === "firefox" ? "firefox" : "chrome";
|
|
|
|
export const isFirefox = browser === "firefox";
|
|
export const isChrome = browser === "chrome";
|
|
|
|
export function getOutDir() {
|
|
return `dist/${browser}`;
|
|
}
|
|
|
|
export function getManifestSrc() {
|
|
return isFirefox ? "manifest/firefox.json" : "manifest/chrome.json";
|
|
}
|