Skip to content

Commit

Permalink
encode cdn version
Browse files Browse the repository at this point in the history
  • Loading branch information
mayakoneval committed Mar 9, 2023
1 parent 8ad3a3f commit 614e138
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,9 @@ export const getEmbeddedExplorerHTML = (
style="width: 100vw; height: 100vh; position: absolute; top: 0;"
id="embeddableExplorer"
></div>
<script src="https://embeddable-explorer.cdn.apollographql.com/${explorerCdnVersion}/embeddable-explorer.umd.production.min.js?runtime=${apolloServerVersion}"></script>
<script src="https://embeddable-explorer.cdn.apollographql.com/${encodeURIComponent(
explorerCdnVersion,
)}/embeddable-explorer.umd.production.min.js?runtime=${apolloServerVersion}"></script>
<script>
var endpointUrl = window.location.href;
var embeddedExplorerConfig = ${getConfigStringForHtml(
Expand Down Expand Up @@ -117,7 +119,9 @@ export const getEmbeddedSandboxHTML = (
style="width: 100vw; height: 100vh; position: absolute; top: 0;"
id="embeddableSandbox"
></div>
<script src="https://embeddable-sandbox.cdn.apollographql.com/${sandboxCdnVersion}/embeddable-sandbox.umd.production.min.js?runtime=${apolloServerVersion}"></script>
<script src="https://embeddable-sandbox.cdn.apollographql.com/${encodeURIComponent(
sandboxCdnVersion,
)}/embeddable-sandbox.umd.production.min.js?runtime=${apolloServerVersion}"></script>
<script>
var initialEndpoint = window.location.href;
new window.EmbeddedSandbox({
Expand Down

0 comments on commit 614e138

Please sign in to comment.