Revert "Counteract zoom-level changes in custom titlebar"

This reverts commit 635aab838f.
This commit is contained in:
Josh Perez 2022-06-17 12:48:17 -04:00 committed by GitHub
parent d970d427f8
commit 3581f78913
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 12 additions and 32 deletions

View file

@ -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));