Skip to content

Commit

Permalink
disable windows scaling by default
Browse files Browse the repository at this point in the history
closes #255
  • Loading branch information
xgi committed Mar 24, 2023
1 parent ed592d6 commit c301a10
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main.dev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,9 @@ ipcMain.handle(ipcChannels.APP.READ_ENTIRE_FILE, (_event, filepath: string) => {
return fs.readFileSync(filepath).toString();
});

app.commandLine.appendSwitch('high-dpi-support', '1');
app.commandLine.appendSwitch('force-device-scale-factor', '1');

// create ipc handlers for specific extension functionality
const webviewFn: WebviewFunc = (url, options) => loadInWebView(spoofWindow, url, options);
createExtensionIpcHandlers(ipcMain, pluginsDir, extractDir, webviewFn);
Expand Down

0 comments on commit c301a10

Please sign in to comment.