diff --git a/src/main.dev.ts b/src/main.dev.ts index 22e31687..74902806 100644 --- a/src/main.dev.ts +++ b/src/main.dev.ts @@ -218,8 +218,10 @@ 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'); +if (process.platform === 'win32') { + 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);