Add confPatch for Edge
This commit is contained in:
parent
1b00420388
commit
861e62dc56
@ -3,6 +3,7 @@
|
|||||||
import StretchType from '../../common/enums/StretchType.enum';
|
import StretchType from '../../common/enums/StretchType.enum';
|
||||||
import ExtensionMode from '../../common/enums/ExtensionMode.enum';
|
import ExtensionMode from '../../common/enums/ExtensionMode.enum';
|
||||||
import VideoAlignmentType from '../../common/enums/VideoAlignmentType.enum';
|
import VideoAlignmentType from '../../common/enums/VideoAlignmentType.enum';
|
||||||
|
import BrowserDetect from './BrowserDetect';
|
||||||
|
|
||||||
const ExtensionConfPatch = [
|
const ExtensionConfPatch = [
|
||||||
{
|
{
|
||||||
@ -445,6 +446,21 @@ const ExtensionConfPatch = [
|
|||||||
// do nothing if disney+ is missing
|
// 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
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -7,6 +7,7 @@ import AntiGradientMode from '../../common/enums/AntiGradientMode.enum';
|
|||||||
import AspectRatioType from '../../common/enums/AspectRatioType.enum';
|
import AspectRatioType from '../../common/enums/AspectRatioType.enum';
|
||||||
import CropModePersistence from '../../common/enums/CropModePersistence.enum';
|
import CropModePersistence from '../../common/enums/CropModePersistence.enum';
|
||||||
import SettingsInterface from '../../common/interfaces/SettingsInterface';
|
import SettingsInterface from '../../common/interfaces/SettingsInterface';
|
||||||
|
import BrowserDetect from './BrowserDetect';
|
||||||
|
|
||||||
if(Debug.debug)
|
if(Debug.debug)
|
||||||
console.log("Loading: ExtensionConf.js");
|
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,
|
whatsNewChecked: true,
|
||||||
// -----------------------------------------
|
// -----------------------------------------
|
||||||
// ::: SITE CONFIGURATION :::
|
// ::: SITE CONFIGURATION :::
|
||||||
|
Loading…
Reference in New Issue
Block a user