Skip to content

Commit

Permalink
Special case reloads as allowed if we can
Browse files Browse the repository at this point in the history
  • Loading branch information
danpalmer committed Aug 30, 2018
1 parent 0d8f9db commit 9a5b355
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions graphene_django/templates/graphene/graphiql.html
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,9 @@
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 = {};
}
Expand Down

0 comments on commit 9a5b355

Please sign in to comment.