This commit is contained in:
2026-04-25 16:44:08 +09:00
parent 9d61a19a6e
commit 5a2c2629da
3 changed files with 61 additions and 27 deletions
+9 -2
View File
@@ -94,7 +94,9 @@
(msg.entries || []).forEach((e) => appendRow(e.phase, e.detail, "", e.severity));
if (msg.status === "done") {
closedByDone = true;
location.replace(init.resultsUrl);
typeof window.__navigate === 'function'
? window.__navigate(init.resultsUrl)
: location.replace(init.resultsUrl);
}
return;
}
@@ -118,7 +120,12 @@
if (msg.type === "done") {
closedByDone = true;
markDone(msg.rank, msg.score);
setTimeout(() => location.replace(msg.redirect || init.resultsUrl), 300);
setTimeout(() => {
const target = msg.redirect || init.resultsUrl;
typeof window.__navigate === 'function'
? window.__navigate(target)
: location.replace(target);
}, 300);
return;
}
if (msg.type === "error") {