Skip to content

Commit

Permalink
Fix: HTTP progress handler not passed optional variables
Browse files Browse the repository at this point in the history
  • Loading branch information
Jermolene committed Feb 6, 2025
1 parent d770d98 commit d4bc3fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/modules/utils/dom/http.js
Original file line number Diff line number Diff line change
Expand Up @@ -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});
}
});
}
Expand Down

0 comments on commit d4bc3fc

Please sign in to comment.