Commit 19a0c6cc authored by lamby's avatar lamby Committed by sajolida
Browse files

Use window.open over setting window.location to avoid race conditions. (re. #14922)

Setting window.location.href will abort AJAX requests resulting
in a NetworkError depending on the timing and browser.
parent ea7a95e9
......@@ -278,7 +278,9 @@ document.addEventListener("DOMContentLoaded", function() {
toggleDirectBitTorrent("direct");
resetVerificationResult();
} finally {
window.location = this.getAttribute("href");
// Setting window.location.href will abort AJAX requests resulting
// in a NetworkError depending on the timing and browser.
window.open(this.getAttribute("href"), "_blank");
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment