mirror of
https://github.com/movie-web/extension.git
synced 2025-09-13 18:13:25 +00:00
add firstPartyDomain for first-party isolation
This commit is contained in:
@@ -1,3 +1,11 @@
|
||||
export const isChrome = () => {
|
||||
return chrome.runtime.getURL('').startsWith('chrome-extension://');
|
||||
};
|
||||
|
||||
export const isFirefox = () => {
|
||||
try {
|
||||
return browser.runtime.getURL('').startsWith('moz-extension://');
|
||||
} catch {
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user