lang: no need to shim navigator.language

This commit is contained in:
bordun 2018-08-28 13:45:52 +02:00
parent eac1f1fc8e
commit d57ec8eee1

View file

@ -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