Skip to content

Commit

Permalink
Relative URL
Browse files Browse the repository at this point in the history
  • Loading branch information
sanmai committed Oct 5, 2024
1 parent 2d0e071 commit 4ad1622
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ https://sanmai.github.io/pindx/json/AAA/AAABBB.json
<script>

(async () => {
let prefix = await window.fetch('/json/index.json')
let prefix = await window.fetch('json/index.json')
.then(function(response) {
return response.json();
}).then(function(json) {
return json[~~(Math.random() * json.length)];
});

let index = await window.fetch('/json/' + prefix + '.json')
let index = await window.fetch('json/' + prefix + '.json')
.then(function(response) {
return response.json();
}).then(function(json) {
Expand Down

0 comments on commit 4ad1622

Please sign in to comment.