Special case reloads as allowed if we can

This commit is contained in:
Dan Palmer 2018-08-30 19:48:38 +01:00
parent 0d8f9db3fb
commit 9a5b3556d3
No known key found for this signature in database
GPG Key ID: DD869B28A1B7AA92

View File

@ -101,7 +101,9 @@ add "&raw" to the end of the URL within a browser.
history.replaceState(null, null, locationQuery(parameters));
}
// If there are any fragment parameters, confirm the user wants to use them.
var isReload = window.performance ? performance.navigation.type === 1 : false;
if (Object.keys(parameters).length
&& !isReload
&& !window.confirm("An untrusted query has been loaded, continue loading query?")) {
parameters = {};
}