-
-
Save ajorgensen/41c957f8f176261b0649ae2c6005b1ad to your computer and use it in GitHub Desktop.
Todoist Right Click Context Fix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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