Fix undefined reject

This commit is contained in:
toasted-nutbread 2020-02-01 14:39:26 -05:00
parent f85f92c665
commit d5708de4ee

View File

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