mirror of
https://github.com/movie-web/extension.git
synced 2025-09-13 16:43:25 +00:00
12 lines
254 B
TypeScript
12 lines
254 B
TypeScript
export const isChrome = () => {
|
|
return chrome.runtime.getURL('').startsWith('chrome-extension://');
|
|
};
|
|
|
|
export const isFirefox = () => {
|
|
try {
|
|
return browser.runtime.getURL('').startsWith('moz-extension://');
|
|
} catch {
|
|
return false;
|
|
}
|
|
};
|