Add confPatch for Edge

This commit is contained in:
Tamius Han 2021-04-05 03:30:29 +02:00
parent 1b00420388
commit 861e62dc56
2 changed files with 24 additions and 0 deletions

View File

@ -3,6 +3,7 @@
import StretchType from '../../common/enums/StretchType.enum';
import ExtensionMode from '../../common/enums/ExtensionMode.enum';
import VideoAlignmentType from '../../common/enums/VideoAlignmentType.enum';
import BrowserDetect from './BrowserDetect';
const ExtensionConfPatch = [
{
@ -445,6 +446,21 @@ const ExtensionConfPatch = [
// do nothing if disney+ is missing
}
}
}, {
forVersion: '5.0.1',
updateFn: (userOptions, defaultOptions) => {
try {
userOptions.mitigations = {
zoomLimit: {
enabled: BrowserDetect.edge || BrowserDetect.isEdgeUA,
limit: 0.997,
fullscreenOnly: true
}
}
} catch (e) {
// do nothing
}
}
}
];

View File

@ -7,6 +7,7 @@ import AntiGradientMode from '../../common/enums/AntiGradientMode.enum';
import AspectRatioType from '../../common/enums/AspectRatioType.enum';
import CropModePersistence from '../../common/enums/CropModePersistence.enum';
import SettingsInterface from '../../common/interfaces/SettingsInterface';
import BrowserDetect from './BrowserDetect';
if(Debug.debug)
console.log("Loading: ExtensionConf.js");
@ -960,6 +961,13 @@ const ExtensionConf: SettingsInterface = {
}
},
],
mitigations: {
zoomLimit: {
enabled: BrowserDetect.edge || BrowserDetect.isEdgeUA,
limit: 0.997,
fullscreenOnly: true
}
},
whatsNewChecked: true,
// -----------------------------------------
// ::: SITE CONFIGURATION :::