fix zooming in server install

This commit is contained in:
zadam 2022-09-15 23:10:54 +02:00
parent cf6330dee6
commit 01a7ed8311

View file

@ -214,6 +214,10 @@ export default class GlobalMenuWidget extends BasicWidget {
} }
updateZoomState() { updateZoomState() {
if (!utils.isElectron()) {
return;
}
const zoomFactor = utils.dynamicRequire('electron').webFrame.getZoomFactor(); const zoomFactor = utils.dynamicRequire('electron').webFrame.getZoomFactor();
const zoomPercent = Math.round(zoomFactor * 100); const zoomPercent = Math.round(zoomFactor * 100);