From 988a920a2fc4b31ebf50439ebd51e63af93e49e4 Mon Sep 17 00:00:00 2001 From: eight Date: Thu, 9 Nov 2017 12:49:37 +0800 Subject: [PATCH] Fix: use getOwnTab in closeCurrentTab --- js/messaging.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/messaging.js b/js/messaging.js index 67fa1dca..6f6efbd6 100644 --- a/js/messaging.js +++ b/js/messaging.js @@ -443,7 +443,8 @@ function openEditor(id) { function closeCurrentTab() { - chrome.tabs.getCurrent(tab => { + // https://bugzilla.mozilla.org/show_bug.cgi?id=1409375 + getOwnTab().then(tab => { if (tab) { chrome.tabs.remove(tab.id); }