lang: no need to shim navigator.language
This commit is contained in:
parent
22f4fbf602
commit
3b8a477f0c
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 || (()=>{ try { return navigator.language } catch (e) {} })() || 'en').toLowerCase()
|
||||
window.LANG = (ARGV.lang || navigator.language || 'en').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