We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
isPersistentBackground
Event pages and service workers can be unloaded at any time. There should be a detection to tell a persistent background page from an unloadable one.
Does isPersistentBackground make sense? isEventPage could work but I'd prefer a detection that lumps event pages and service workers.
isEventPage
The text was updated successfully, but these errors were encountered:
const background = chrome.runtime.getManifest().background!; const isPersistentBackgroundPage = !('service_worker' in background) && background.persistent !== false;
Sorry, something went wrong.
isPersistentBackgroundPage
Usable here
https://github.com/fregante/webext-inject-on-install/blob/95acba15cef51bf533fcdc0605e541c25a431a95/source/inject.ts#L47
Successfully merging a pull request may close this issue.
Event pages and service workers can be unloaded at any time. There should be a detection to tell a persistent background page from an unloadable one.
Does
isPersistentBackground
make sense?isEventPage
could work but I'd prefer a detection that lumps event pages and service workers.The text was updated successfully, but these errors were encountered: