aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-02-01 14:39:26 -0500
committertoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-02-08 20:49:01 -0500
commitd5708de4eed15567e14e0c1fd4998561eee1680e (patch)
tree558f44984948c6ee72d8fa7c9a70cb43990c7a3e /ext/bg/js
parentf85f92c665736c759aa9d325d6d36f236fc21485 (diff)
Fix undefined reject
Diffstat (limited to 'ext/bg/js')
-rw-r--r--ext/bg/js/backend.js2
1 files changed, 1 insertions, 1 deletions
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); }