mirror of
https://github.com/SpacehuhnTech/esp8266_deauther.git
synced 2025-12-12 01:29:58 +01:00
Implicitely add lang attribute to the HTML page
so that language-specific CSS can be applied (see #909)
This commit is contained in:
@@ -99,6 +99,7 @@ function parseLang(fileStr){
|
||||
element.innerHTML = lang(element.getAttribute("data-translate"));
|
||||
}
|
||||
}
|
||||
document.querySelector('html').setAttribute("lang", langJson["lang"] );
|
||||
if(typeof load !== 'undefined') load();
|
||||
}
|
||||
|
||||
@@ -114,4 +115,4 @@ function loadLang(){
|
||||
getFile("lang/en.lang", parseLang);
|
||||
}
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user