diff --git a/templates/inspector.html b/templates/inspector.html
index 90cff93..d33e9a6 100644
--- a/templates/inspector.html
+++ b/templates/inspector.html
@@ -468,7 +468,7 @@ async function loadInspector() {
}
loadInspector();
-var _inspInterval = (window.gandalfSettings && window.gandalfSettings.refreshInterval) || 60;
+const _inspInterval = (window.gandalfSettings && window.gandalfSettings.refreshInterval) || 60;
if (_inspInterval > 0) lt.autoRefresh.start(loadInspector, Math.max(_inspInterval, 15) * 1000);
window.onGandalfSettingsChanged = function(s) {