mirror of
https://github.com/gorhill/uBlock.git
synced 2024-10-06 09:37:12 +02:00
Remove test for whether Chromium version is less than 66
The test is no longer needed given that the minimum supported version is Chromium 66.
This commit is contained in:
parent
ff52919cfc
commit
3154ed1bac
@ -45,13 +45,6 @@ if ( vAPI.canWASM === false ) {
|
|||||||
|
|
||||||
vAPI.supportsUserStylesheets = vAPI.webextFlavor.soup.has('user_stylesheet');
|
vAPI.supportsUserStylesheets = vAPI.webextFlavor.soup.has('user_stylesheet');
|
||||||
|
|
||||||
// The real actual webextFlavor value may not be set in stone, so listen
|
|
||||||
// for possible future changes.
|
|
||||||
window.addEventListener('webextFlavor', function() {
|
|
||||||
vAPI.supportsUserStylesheets =
|
|
||||||
vAPI.webextFlavor.soup.has('user_stylesheet');
|
|
||||||
}, { once: true });
|
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
|
|
||||||
vAPI.app = {
|
vAPI.app = {
|
||||||
|
@ -83,12 +83,9 @@ vAPI.webextFlavor = {
|
|||||||
// Synchronous -- order of tests is important
|
// Synchronous -- order of tests is important
|
||||||
const match = /\bChrom(?:e|ium)\/([\d.]+)/.exec(ua);
|
const match = /\bChrom(?:e|ium)\/([\d.]+)/.exec(ua);
|
||||||
if ( match !== null ) {
|
if ( match !== null ) {
|
||||||
soup.add('chromium');
|
soup.add('chromium')
|
||||||
|
.add('user_stylesheet');
|
||||||
flavor.major = parseInt(match[1], 10) || 0;
|
flavor.major = parseInt(match[1], 10) || 0;
|
||||||
// https://github.com/gorhill/uBlock/issues/3588
|
|
||||||
if ( flavor.major >= 66 ) {
|
|
||||||
soup.add('user_stylesheet');
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Don't starve potential listeners
|
// Don't starve potential listeners
|
||||||
|
Loading…
Reference in New Issue
Block a user