Fix waitingDialog being shown on browser history back

This commit is contained in:
Richard Schreiber
2025-09-05 12:36:35 +02:00
parent 49057590f1
commit 1f56d97c69
+1 -1
View File
@@ -42,8 +42,8 @@ function async_task_schedule_check(context, timeout) {
function async_task_on_success(data) {
"use strict";
waitingDialog.hide();
if ((async_task_is_download && data.success) || async_task_dont_redirect) {
waitingDialog.hide();
if (location.href.indexOf("async_id") !== -1) {
history.replaceState({}, "pretix", async_task_old_url);
}