We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4e4d9d0 + e3e36dc commit 2d67834Copy full SHA for 2d67834
assets/javascripts/index.js
@@ -1,3 +1,7 @@
1
+window.onbeforeunload = function () {
2
+ window.unloading = true;
3
+};
4
+
5
function setupIndexPage() {
6
setupFilterForm({preventLoadingIndication: true});
7
@@ -105,6 +109,9 @@ function loadBuildResults(queryParams) {
105
109
window.buildResultStatus = 'success';
106
110
})
107
111
.catch(error => {
112
+ if (window.unloading) {
113
+ return;
114
+ }
108
115
const message = error ? htmlEscape(error) : 'Unable to fetch build results.';
116
showBuildResults(
117
'<div class="alert alert-danger" role="alert">' +
0 commit comments