mirror of
https://github.com/zadam/trilium.git
synced 2025-12-11 13:15:58 +08:00
fix zooming in server install
This commit is contained in:
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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue