From 64a38d6e45f78140bbb41ae3ca4437e6747c2285 Mon Sep 17 00:00:00 2001 From: sbwalker Date: Thu, 16 Jan 2025 14:21:52 -0500 Subject: [PATCH] allow data-reload to support true or always --- Oqtane.Server/wwwroot/js/reload.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Oqtane.Server/wwwroot/js/reload.js b/Oqtane.Server/wwwroot/js/reload.js index 66ac9a4c..9c29628d 100644 --- a/Oqtane.Server/wwwroot/js/reload.js +++ b/Oqtane.Server/wwwroot/js/reload.js @@ -14,7 +14,7 @@ export function onUpdate() { if (enhancedNavigation) { // reload the script if data-reload is always or if the script has not been loaded previously and data-reload is once let dataReload = script.getAttribute('data-reload'); - if (dataReload === 'always' || (!scriptKeys.has(key) && dataReload == 'once')) { + if ((dataReload === 'true' || dataReload === 'always') || (!scriptKeys.has(key) && dataReload == 'once')) { reloadScript(script); } }