Skip to content

Commit

Permalink
fix explorer_plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
bilalebi committed Jul 23, 2024
1 parent bd300fc commit 65b01a7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion graphql_service/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def __init__(
CUSTOM_GRAPHIQL_HTML,
{
"title": title,
# "enable_explorer_plugin": explorer_plugin,
"enable_explorer_plugin": explorer_plugin,
"default_query": escape_default_query(default_query),
},
)
Expand Down
6 changes: 3 additions & 3 deletions graphql_service/templates/custom_graphiql.html
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,9 @@
border: 0;
}
</style>
<link rel="stylesheet" href="https://unpkg.com/graphiql/graphiql.min.css" />
<link rel="stylesheet" href="https://unpkg.com/graphiql@3.0.0/graphiql.min.css" />
{% if enable_explorer_plugin %}
<link rel="stylesheet" href="https://unpkg.com/@graphiql/plugin-explorer/dist/style.css" />
<link rel="stylesheet" href="https://unpkg.com/@graphiql/plugin-explorer@0.1.21/dist/style.css" />
{% endif %}
</head>

Expand Down Expand Up @@ -152,7 +152,7 @@
{% if enable_explorer_plugin %}
<script
crossorigin
src="https://unpkg.com/@graphiql/plugin-explorer/dist/graphiql-plugin-explorer.umd.js"
src="https://unpkg.com/@graphiql/plugin-explorer@0.1.21/dist/index.umd.js"
></script>
{% endif %}
<script>
Expand Down

0 comments on commit 65b01a7

Please sign in to comment.