projects
/
web
/
firmware-selector-openwrt-org.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1955b03
)
add comment
author
Moritz Warning
<moritzwarning@web.de>
Sun, 2 Aug 2020 10:21:14 +0000
(12:21 +0200)
committer
Moritz Warning
<moritzwarning@web.de>
Sun, 2 Aug 2020 10:21:14 +0000
(12:21 +0200)
www/index.js
patch
|
blob
|
history
diff --git
a/www/index.js
b/www/index.js
index 474bceb21ec7877283b173a88782d00920545d40..6f3893e45e0684846b9d8d199d2b1f55e4b6ce45 100644
(file)
--- a/
www/index.js
+++ b/
www/index.js
@@
-446,6
+446,7
@@
function init() {
// hide fields
updateImages();
+ // default to browser language
var user_lang = (navigator.language || navigator.userLanguage).split('-')[0];
if (user_lang in translations) {
config.language = user_lang;