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

View File

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