Remove unused code path as per current minimum browser version

This commit is contained in:
Raymond Hill 2021-10-17 13:50:43 -04:00
parent a72aa58c92
commit 18ae79cdf2
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
1 changed files with 2 additions and 5 deletions

View File

@ -66,19 +66,16 @@ vAPI.webextFlavor = {
typeof browser.runtime.getBrowserInfo === 'function'
) {
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())
.add(info.name.toLowerCase());
if ( soup.has('firefox') && flavor.major < 57 ) {
soup.delete('html_filtering');
}
dispatch();
});
if ( browser.runtime.getURL('').startsWith('moz-extension://') ) {
soup.add('firefox')
.add('user_stylesheet')
.add('html_filtering');
flavor.major = 60;
flavor.major = 78;
}
return;
}