From dc43049183f9e1cf8cd72e0292f359cd05252e45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Mon, 4 Jul 2022 14:08:55 +0200 Subject: [PATCH] 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". --- web/app/src/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/app/src/main.js b/web/app/src/main.js index d516e899..c79c722a 100644 --- a/web/app/src/main.js +++ b/web/app/src/main.js @@ -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()