locale: better arg parse
This commit is contained in:
parent
f0b44c15d8
commit
18508e00e6
1 changed files with 1 additions and 1 deletions
|
|
@ -5,7 +5,7 @@ location.search.replace(/[?&]+([^=&]+)=([^&]*)/gi, (s,k,v)=>{
|
|||
|
||||
window.ELECTRON_FULLSCREEN = window.ELECTRON_FULLSCREEN || false
|
||||
|
||||
window.LANG = (ARGV.lang || navigator.language || 'en').toLowerCase()
|
||||
window.LANG = (ARGV.lang || navigator.language || '').substr(0, 2).toLowerCase()
|
||||
|
||||
window.PACKAGE = require('../../../../app/package.json')
|
||||
document.title = PACKAGE.productName + ' v' + PACKAGE.version
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue