Override document title for index (#1246)

This commit is contained in:
Joakim Sørensen 2021-06-23 21:15:47 +02:00 committed by GitHub
parent 33abdcde39
commit b5ca33fde0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -36,6 +36,9 @@
</div>
</div>
<script>
if (window.location.pathname === "/") {
window.document.title = "ESPHome"
}
var old = window.localStorage.getItem("version");
if (old === null) { window.localStorage.setItem("version", "{{ version }}");
} else if (old !== "{{ version }}") {