Skip to content

Instantly share code, notes, and snippets.

@ajorgensen
Last active August 25, 2021 04:51
Show Gist options
  • Save ajorgensen/41c957f8f176261b0649ae2c6005b1ad to your computer and use it in GitHub Desktop.
Save ajorgensen/41c957f8f176261b0649ae2c6005b1ad to your computer and use it in GitHub Desktop.
Todoist Right Click Context Fix
diff --git a/background.js b/background.js
index 6584934..a660a74 100644
--- a/background.js
+++ b/background.js
@@ -232,7 +232,7 @@ function addTabAsTask(contentToAdd) {
}
function addToTodoistFromMenu(ev, tab) {
- const url = ev.pageUrl
+ const url = (ev.linkUrl !== undefined) ? ev.linkUrl : ev.pageUrl
let text = (tab && tab.title) || ""
if (ev.selectionText) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment