From bb232e0895ba2090c5b4555e882453c5f60f2dfb Mon Sep 17 00:00:00 2001 From: hackademix Date: Sat, 18 Aug 2018 22:52:34 +0200 Subject: More reliable attempt to run onResponseHeader listener the last of installed extension. --- src/bg/deferWebTraffic.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/bg/deferWebTraffic.js') 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); -- cgit v1.2.3