diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2020-02-01 14:39:26 -0500 |
---|---|---|
committer | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2020-02-08 20:49:01 -0500 |
commit | d5708de4eed15567e14e0c1fd4998561eee1680e (patch) | |
tree | 558f44984948c6ee72d8fa7c9a70cb43990c7a3e /ext | |
parent | f85f92c665736c759aa9d325d6d36f236fc21485 (diff) |
Fix undefined reject
Diffstat (limited to 'ext')
-rw-r--r-- | ext/bg/js/backend.js | 2 |
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); } |