--
This commit is contained in:
@@ -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") {
|
||||
|
||||
Reference in New Issue
Block a user