-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
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
Add Safari support (done) #10
Comments
I found out why: If this can be fixed, I think this module is still the easiest way to build cross-browser extensions since we don't have to customize the Safari build. |
This bug might be solved by Safari in the near future or it might not. I have 2 "solutions" for this:
Perhaps I use both:
|
This comment has been minimized.
This comment has been minimized.
I think I found a workable solution!! Step 1: Ask the user to try again. if (!tab.url) {
chrome.tabs.executeScript({
code: `alert("Try again pretty please?")` // Alert doesn't work from background in Safari
});
return;
} Step 2: Bind the Step 3: Make sure that the menuitem checkmark is updated correctly when it fails 🥳 However webext-dynamic-content-scripts also needs to be fixed. |
Safari has its own permission system which would replace this module
However this module should be updated to avoid adding a non-working context menu item
The text was updated successfully, but these errors were encountered: