Browse Source

Allow to send accept language header to websites, according to settings

pull/2219/head
mxb 6 years ago
parent
commit
7bdd0a0a97
  1. 2
      electron/main.js

2
electron/main.js

@ -58,6 +58,8 @@ if (config.get('enable_hidpi_support') && (process.platform === 'win32')) {
app.commandLine.appendSwitch('force-device-scale-factor', '1') app.commandLine.appendSwitch('force-device-scale-factor', '1')
} }
app.commandLine.appendSwitch('lang', config.get('locale') === 'en' ? 'en-US' : config.get('locale'))
// Because we build it using Squirrel, it will assign UserModelId automatically, so we match it here to display notifications correctly. // Because we build it using Squirrel, it will assign UserModelId automatically, so we match it here to display notifications correctly.
// https://github.com/electron-userland/electron-builder/issues/362 // https://github.com/electron-userland/electron-builder/issues/362
app.setAppUserModelId('com.grupovrs.ramboxce'); app.setAppUserModelId('com.grupovrs.ramboxce');

Loading…
Cancel
Save