mirror of
https://github.com/graphql-python/graphene-django.git
synced 2025-07-08 22:33:13 +03:00
Special case reloads as allowed if we can
This commit is contained in:
parent
0d8f9db3fb
commit
9a5b3556d3
|
@ -101,7 +101,9 @@ add "&raw" to the end of the URL within a browser.
|
||||||
history.replaceState(null, null, locationQuery(parameters));
|
history.replaceState(null, null, locationQuery(parameters));
|
||||||
}
|
}
|
||||||
// If there are any fragment parameters, confirm the user wants to use them.
|
// 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
|
if (Object.keys(parameters).length
|
||||||
|
&& !isReload
|
||||||
&& !window.confirm("An untrusted query has been loaded, continue loading query?")) {
|
&& !window.confirm("An untrusted query has been loaded, continue loading query?")) {
|
||||||
parameters = {};
|
parameters = {};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user