Skip to content

Commit

Permalink
Merge pull request #1831 from dgageot/fix-1822
Browse files Browse the repository at this point in the history
Fix Safari issue on skaffold.dev yaml reference
  • Loading branch information
dgageot authored Mar 19, 2019
2 parents 0e0cfae + afcf8d0 commit a5e8332
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/content/en/docs/references/yaml/_index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@

<link href="https://fonts.googleapis.com/css?family=Roboto+Mono:400,700" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="main.css">
<script type="module" src="main.js#{{% skaffold-version %}}"></script>
<script type="module" src="main.js?version={{% skaffold-version %}}"></script>
<table id="table"></table>
2 changes: 1 addition & 1 deletion docs/content/en/docs/references/yaml/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { unsafeHTML } from "https://unpkg.com/[email protected]/directives/unsafe-h
var version;
(async function() {
const url = new URL(import.meta.url);
version = url.hash.replace("#skaffold/", "");
version = url.searchParams.get('version').replace('skaffold/', '');

const response = await fetch(`/schemas/${version}.json`);
const json = await response.json();
Expand Down

0 comments on commit a5e8332

Please sign in to comment.