-
Notifications
You must be signed in to change notification settings - Fork 778
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 context menu support #731
Conversation
Codecov Report
@@ Coverage Diff @@
## dev #731 +/- ##
==========================================
+ Coverage 18.34% 18.37% +0.03%
==========================================
Files 17 17
Lines 1532 1540 +8
Branches 335 337 +2
==========================================
+ Hits 281 283 +2
- Misses 1219 1223 +4
- Partials 32 34 +2
Continue to review full report at Codecov.
|
manifests/manifest-firefox.json
Outdated
@@ -47,6 +47,7 @@ | |||
"optional_permissions": [ | |||
"<all_urls>", | |||
"clipboardWrite", | |||
"contextMenus", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not an allowed optional permission in Firefox. I think it may be best to just remove Firefox support for this feature rather than adding a required permission.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated
onclick: (_, tab) => { | ||
let popupUrl = "view/popup.html?popup=true"; | ||
if (tab.url && tab.title) { | ||
popupUrl += |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
src/store/Accounts.ts
Outdated
return resolve([title, null]); | ||
} | ||
|
||
const urlParser = document.createElement("a"); | ||
urlParser.href = tab.url; | ||
urlParser.href = url; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should convert this to URL.hostname rather than messing with the DOM.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated
No description provided.