Force old chrome installs to force-enable the zoom limit

This commit is contained in:
Tamius Han 2021-04-12 20:30:42 +02:00
parent 19e021ce8e
commit 9beeffc679

View File

@ -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
}
}
}
];