Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow for easier template overrides in graphiql #863

Merged
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion graphene_django/static/graphene_django/graphiql.js
Expand Up @@ -97,6 +97,6 @@
// Render <GraphiQL /> into the body.
ReactDOM.render(
React.createElement(GraphiQL, options),
document.body
document.getElementsByClassName("editor")[0]
jkimbo marked this conversation as resolved.
Show resolved Hide resolved
);
})();
1 change: 1 addition & 0 deletions graphene_django/templates/graphene/graphiql.html
Expand Up @@ -31,6 +31,7 @@
crossorigin="anonymous"></script>
</head>
<body>
<div class="editor"></div>
benhowes marked this conversation as resolved.
Show resolved Hide resolved
{% csrf_token %}
<script src="{% static 'graphene_django/graphiql.js' %}"></script>
</body>
Expand Down