Fix: use getOwnTab in closeCurrentTab
This commit is contained in:
parent
9a8c19b09b
commit
988a920a2f
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user