mirror of
https://github.com/zadam/trilium.git
synced 2024-09-22 08:36:10 +08:00
fix zooming in server install
This commit is contained in:
parent
cf6330dee6
commit
01a7ed8311
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue