From b2e2ad828abf447cccfcc0e96a850ba07bc34ce0 Mon Sep 17 00:00:00 2001 From: Paul Date: Mon, 6 Feb 2017 13:59:02 +0100 Subject: [PATCH] Do not close current tab I found it very annoying the the active tab is always closed after adding it to OmniFocus. There is also a review for this AddOn mentioning the same issue. If I had more knowledge in Firefox AddOn I would add some settings to the AddOn. - Close current tab: yes/no - Configure tab title suffix/affix - Shortcut --- lib/main.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/main.js b/lib/main.js index 9466cc4..17adfa3 100644 --- a/lib/main.js +++ b/lib/main.js @@ -17,5 +17,4 @@ function handleClick(state) { var selection = require("sdk/selection"); var note = tabs.activeTab.url + (selection.text != undefined ? "\n" + selection.text : ""); tabs.open('omnifocus:///add?name=' + encodeURIComponent(name) + '¬e=' + encodeURIComponent(note)); - tabs.activeTab.close(); -} \ No newline at end of file +}