mirror of https://github.com/vector-im/riot-web
Change html root id
Change the root <html> element id to follow Matrix naming conventions.pull/5685/head
parent
c0a5c28d80
commit
43b3c013f2
|
@ -1,5 +1,5 @@
|
|||
<!doctype html>
|
||||
<html id="root" lang="en" style="height: 100%;">
|
||||
<html id="mx_PageRoot" lang="en" style="height: 100%;">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Riot</title>
|
||||
|
|
|
@ -382,7 +382,7 @@ async function loadLanguage() {
|
|||
}
|
||||
try {
|
||||
await languageHandler.setLanguage(langs);
|
||||
document.getElementById("root").setAttribute("lang", languageHandler.getCurrentLanguage());
|
||||
document.getElementById("mx_PageRoot").setAttribute("lang", languageHandler.getCurrentLanguage());
|
||||
} catch (e) {
|
||||
console.error("Unable to set language", e);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue