Skip to content

Commit

Permalink
main: only workaround scale factor for chrome 91
Browse files Browse the repository at this point in the history
  • Loading branch information
rocka committed Jun 14, 2021
1 parent 206fbed commit 8ddfc9f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ import * as Settings from './settings';
import { AppTray } from './tray';

// workaround https://bugs.chromium.org/p/chromium/issues/detail?id=1213347
process.env.GDK_SCALE = '';
if (process.versions.chrome.startsWith('91.0')) {
delete process.env.GDK_SCALE;
delete process.env.GDK_DPI_SCALE;
}

let shouldAppQuit = true;
/** @type {(ev: import('electron').Event) => any} */
Expand Down

0 comments on commit 8ddfc9f

Please sign in to comment.