Skip to content

Commit 9a5b355

Browse files
committed
Special case reloads as allowed if we can
1 parent 0d8f9db commit 9a5b355

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

graphene_django/templates/graphene/graphiql.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,9 @@
101101
history.replaceState(null, null, locationQuery(parameters));
102102
}
103103
// If there are any fragment parameters, confirm the user wants to use them.
104+
var isReload = window.performance ? performance.navigation.type === 1 : false;
104105
if (Object.keys(parameters).length
106+
&& !isReload
105107
&& !window.confirm("An untrusted query has been loaded, continue loading query?")) {
106108
parameters = {};
107109
}

0 commit comments

Comments
 (0)