Change html root id

Change the root <html> element id to follow Matrix naming conventions.
This commit is contained in:
Aidan Gauland 2017-11-26 09:49:39 +13:00
parent c0a5c28d80
commit 43b3c013f2
2 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
<!doctype html> <!doctype html>
<html id="root" lang="en" style="height: 100%;"> <html id="mx_PageRoot" lang="en" style="height: 100%;">
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<title>Riot</title> <title>Riot</title>

View File

@ -382,7 +382,7 @@ async function loadLanguage() {
} }
try { try {
await languageHandler.setLanguage(langs); await languageHandler.setLanguage(langs);
document.getElementById("root").setAttribute("lang", languageHandler.getCurrentLanguage()); document.getElementById("mx_PageRoot").setAttribute("lang", languageHandler.getCurrentLanguage());
} catch (e) { } catch (e) {
console.error("Unable to set language", e); console.error("Unable to set language", e);
} }