Fix support Brave Browser (synch Chrome)

This commit is contained in:
magnolia1234 2020-05-31 08:57:59 +02:00
parent 15148e4ea4
commit 3436206279

View file

@ -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: <all_urls>)
var medium_custom_domain = (isSiteEnabled({url: 'https://medium.com'}) && matchUrlDomain('cdn-client.medium.com', details.url) && !matchUrlDomain('medium.com', header_referer));