mirror of
https://github.com/movie-web/extension.git
synced 2025-09-13 15:03:25 +00:00
14 lines
399 B
TypeScript
14 lines
399 B
TypeScript
import { isChrome } from '~utils/extension';
|
|
|
|
// Both brave and firefox for some reason need this extension reload,
|
|
// If this isn't done, they will never load properly and will fail updateDynamicRules()
|
|
if (isChrome()) {
|
|
chrome.runtime.onStartup.addListener(() => {
|
|
chrome.runtime.reload();
|
|
});
|
|
} else {
|
|
browser.runtime.onStartup.addListener(() => {
|
|
browser.runtime.reload();
|
|
});
|
|
}
|