Merge pull request #4996 from sbwalker/dev

allow data-reload to support true or always
This commit is contained in:
Shaun Walker 2025-01-16 14:22:06 -05:00 committed by GitHub
commit 4950391201
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);
}
}