mirror of https://github.com/gorhill/uBlock.git
Remove unused code path as per current minimum browser version
This commit is contained in:
parent
a72aa58c92
commit
18ae79cdf2
|
@ -66,19 +66,16 @@ vAPI.webextFlavor = {
|
||||||
typeof browser.runtime.getBrowserInfo === 'function'
|
typeof browser.runtime.getBrowserInfo === 'function'
|
||||||
) {
|
) {
|
||||||
browser.runtime.getBrowserInfo().then(info => {
|
browser.runtime.getBrowserInfo().then(info => {
|
||||||
flavor.major = parseInt(info.version, 10) || 60;
|
flavor.major = parseInt(info.version, 10) || flavor.major;
|
||||||
soup.add(info.vendor.toLowerCase())
|
soup.add(info.vendor.toLowerCase())
|
||||||
.add(info.name.toLowerCase());
|
.add(info.name.toLowerCase());
|
||||||
if ( soup.has('firefox') && flavor.major < 57 ) {
|
|
||||||
soup.delete('html_filtering');
|
|
||||||
}
|
|
||||||
dispatch();
|
dispatch();
|
||||||
});
|
});
|
||||||
if ( browser.runtime.getURL('').startsWith('moz-extension://') ) {
|
if ( browser.runtime.getURL('').startsWith('moz-extension://') ) {
|
||||||
soup.add('firefox')
|
soup.add('firefox')
|
||||||
.add('user_stylesheet')
|
.add('user_stylesheet')
|
||||||
.add('html_filtering');
|
.add('html_filtering');
|
||||||
flavor.major = 60;
|
flavor.major = 78;
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue