diff --git a/src/ext/conf/ExtConfPatches.js b/src/ext/conf/ExtConfPatches.js index 694cdeb..bf5bcf7 100644 --- a/src/ext/conf/ExtConfPatches.js +++ b/src/ext/conf/ExtConfPatches.js @@ -476,6 +476,31 @@ const ExtensionConfPatch = [ // do nothing } } + }, { + forVersion: '5.0.2', + updateFn: (userOptions, defaultOptions) => { + try { + if (! userOptions.mitigations) { + userOptions.mitigations = { + zoomLimit: { + enabled: true, + limit: 0.997, + fullscreenOnly: true + } + } + } else if (BrowserDetect.chrome) { + userOptions.mitigations = { + zoomLimit: { + enabled: true, + limit: 0.997, + fullscreenOnly: true + } + } + } + } catch (e) { + // do nothing + } + } } ];