js"
    ></script>

    {% if enable_explorer_plugin %}
    <script
      crossorigin
      src="https://unpkg.com/@graphiql/plugin-explorer@3.1.0/dist/index.umd.js"
    ></script>
    {% endif %}

    <script>
      var fetcher = GraphiQL.createFetcher({
        url: window.location.href,
        {% if subscription_url %}
        subscriptionUrl: "{{ subscription_url }}",
        {% else %}
        subscriptionUrl: (window.location.protocol === "https:" ? "wss" : "ws") + "://" + window.location.host + wind