From 02bd682135a9c8c0d77c41fd666d95ec331d40ef Mon Sep 17 00:00:00 2001 From: tophf Date: Tue, 19 Jan 2021 09:36:53 +0300 Subject: [PATCH] ignore executeScript errors e.g. due to frame removal --- background/style-via-webrequest.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/background/style-via-webrequest.js b/background/style-via-webrequest.js index 0586a463..6099e547 100644 --- a/background/style-via-webrequest.js +++ b/background/style-via-webrequest.js @@ -1,5 +1,5 @@ /* global API */// msg.js -/* global CHROME */// toolbox.js +/* global CHROME ignoreChromeError */// toolbox.js /* global prefs */ 'use strict'; @@ -72,7 +72,7 @@ frameId: req.frameId, runAt: 'document_start', code: `(${injectedCode})(${data.str})`, - }); + }, ignoreChromeError); if (!state.xhr) cleanUp(req); } }