From d4bc3fcd998902c17cd6bcefdc8d380e5c224458 Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Thu, 6 Feb 2025 17:04:10 +0000 Subject: [PATCH] Fix: HTTP progress handler not passed optional variables Thanks @ericshulman --- core/modules/utils/dom/http.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/modules/utils/dom/http.js b/core/modules/utils/dom/http.js index f16f1c51274..37a7855a5a4 100644 --- a/core/modules/utils/dom/http.js +++ b/core/modules/utils/dom/http.js @@ -216,11 +216,11 @@ HttpClientRequest.prototype.send = function(callback) { if(lengthComputable) { setBinding(self.bindProgress,"" + Math.floor((loaded/total) * 100)) } - self.wiki.invokeActionString(self.progressActions,undefined,{ + self.wiki.invokeActionString(self.progressActions,undefined,$tw.utils.extend({},self.variables,{ lengthComputable: lengthComputable ? "yes" : "no", loaded: loaded, total: total - },{parentWidget: $tw.rootWidget}); + }),{parentWidget: $tw.rootWidget}); } }); }