diff options
author | hackademix | 2018-08-18 22:52:34 +0200 |
---|---|---|
committer | hackademix | 2018-08-18 22:52:34 +0200 |
commit | bb232e0895ba2090c5b4555e882453c5f60f2dfb (patch) | |
tree | 4d512d1fe9f40c8a77f561f8e9aa6dc4bdf3c8c3 /src/bg/deferWebTraffic.js | |
parent | 3819592dfcb6618dce067ed9086d914d20e643d5 (diff) | |
download | noscript-bb232e0895ba2090c5b4555e882453c5f60f2dfb.tar.gz noscript-bb232e0895ba2090c5b4555e882453c5f60f2dfb.tar.xz noscript-bb232e0895ba2090c5b4555e882453c5f60f2dfb.zip |
More reliable attempt to run onResponseHeader listener the last of installed extension.
Diffstat (limited to 'src/bg/deferWebTraffic.js')
-rw-r--r-- | src/bg/deferWebTraffic.js | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/bg/deferWebTraffic.js b/src/bg/deferWebTraffic.js index 15d177b..3f27dd5 100644 --- a/src/bg/deferWebTraffic.js +++ b/src/bg/deferWebTraffic.js @@ -34,11 +34,7 @@ function deferWebTraffic(promiseToWaitFor, next) { if (frameId !== 0) { documentUrl = request.frameAncestors.pop().url; } - if (tabId !== -1) { - reloadTab(tabId); - } else { - debug("No tab to reload for %s %s from %s", type, url, documentUrl); - } + reloadTab(tabId); } } debug("Deferring %s %s from %s", type, url, documentUrl); |