mirror of
https://github.com/p-stream/extension.git
synced 2026-01-11 20:10:35 +00:00
13 lines
399 B
TypeScript
13 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();
|
|
});
|
|
}
|