Revert "Counteract zoom-level changes in custom titlebar"
This reverts commit 635aab838f
.
This commit is contained in:
parent
d970d427f8
commit
3581f78913
6 changed files with 12 additions and 32 deletions
|
@ -700,16 +700,7 @@ export async function startApp(): Promise<void> {
|
|||
},
|
||||
});
|
||||
|
||||
const zoomFactor = window.Events.getZoomFactor();
|
||||
webFrame.setZoomFactor(zoomFactor);
|
||||
document.body.style.setProperty('--zoom-factor', zoomFactor.toString());
|
||||
|
||||
window.addEventListener('resize', () => {
|
||||
document.body.style.setProperty(
|
||||
'--zoom-factor',
|
||||
webFrame.getZoomFactor().toString()
|
||||
);
|
||||
});
|
||||
webFrame.setZoomFactor(window.Events.getZoomFactor());
|
||||
|
||||
// How long since we were last running?
|
||||
const lastHeartbeat = toDayMillis(window.storage.get('lastHeartbeat', 0));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue