Web: fix auto-reloading

Fix an issue with the hourly auto-reloading, where the `reload()` call
somehow was called on "an object that doesn't implement the Location
interface".
This commit is contained in:
Sybren A. Stüvel 2022-07-04 14:08:55 +02:00
parent 2c932ebad5
commit dc43049183

View File

@ -17,7 +17,7 @@ window.objectEmpty = (o) => !o || Object.entries(o).length == 0;
// Do a full refresh once per hour. This is just to make sure that long-lived
// displays (like the TV in the hallway at Blender HQ) pick up on HTML/JS/CSS
// changes eventually.
window.setTimeout(window.location.reload, 3600 * 1000);
window.setTimeout(() => {window.location.reload(); }, 3600 * 1000);
const app = createApp(App)
const pinia = createPinia()