问题
Is it possible to use optional_permissions in a chrome extension without a background page?
I have an extension that doesn't currently have a background page, but I would like to add one, which requires a change to the ext's permissions. However, if I update the permissions, the ext will be disabled for my users until they accept the new permissions.
I would like to add background
as an optional permission so I can programatically ask the user to approve the permissions and not deactivate the ext altogether, but I can't find a way to use optional_permissions
without a background page.
This seems like a catch-22 to me. Or am I overlooking something?
来源:https://stackoverflow.com/questions/45471757/chrome-extension-optional-permissions-without-background-page