fix zooming in server install

pull/255/head
zadam 2022-09-15 23:10:54 +07:00
parent cf6330dee6
commit 01a7ed8311
1 changed files with 4 additions and 0 deletions

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