From d5708de4eed15567e14e0c1fd4998561eee1680e Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Sat, 1 Feb 2020 14:39:26 -0500 Subject: [PATCH] Fix undefined reject --- ext/bg/js/backend.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/bg/js/backend.js b/ext/bg/js/backend.js index eeab68a5..43ee81c3 100644 --- a/ext/bg/js/backend.js +++ b/ext/bg/js/backend.js @@ -708,7 +708,7 @@ class Backend { } try { - const tabWindow = await new Promise((resolve) => { + const tabWindow = await new Promise((resolve, reject) => { chrome.windows.get(tab.windowId, {}, (tabWindow) => { const e = chrome.runtime.lastError; if (e) { reject(e); }