From 3436206279f265fefe4060e7f7acff30d9292e48 Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Sun, 31 May 2020 08:57:59 +0200 Subject: [PATCH] Fix support Brave Browser (synch Chrome) --- background.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/background.js b/background.js index 9316672..b33bb80 100644 --- a/background.js +++ b/background.js @@ -388,6 +388,9 @@ ext_api.webRequest.onBeforeSendHeaders.addListener(function(details) { continue; } } + // fix brave browser + if (!details.originUrl && !header_referer.includes(details.initiator)) + header_referer = details.initiator; // remove cookies for sites medium platform (mainfest.json needs in permissions: ) var medium_custom_domain = (isSiteEnabled({url: 'https://medium.com'}) && matchUrlDomain('cdn-client.medium.com', details.url) && !matchUrlDomain('medium.com', header_referer));