Fix: use getOwnTab in closeCurrentTab

This commit is contained in:
eight 2017-11-09 12:49:37 +08:00
parent 9a8c19b09b
commit 988a920a2f

View File

@ -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);
}