Fix undefined reject
This commit is contained in:
parent
f85f92c665
commit
d5708de4ee
@ -708,7 +708,7 @@ class Backend {
|
|||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const tabWindow = await new Promise((resolve) => {
|
const tabWindow = await new Promise((resolve, reject) => {
|
||||||
chrome.windows.get(tab.windowId, {}, (tabWindow) => {
|
chrome.windows.get(tab.windowId, {}, (tabWindow) => {
|
||||||
const e = chrome.runtime.lastError;
|
const e = chrome.runtime.lastError;
|
||||||
if (e) { reject(e); }
|
if (e) { reject(e); }
|
||||||
|
Loading…
Reference in New Issue
Block a user