Skip to content

Commit

Permalink
Update site.js
Browse files Browse the repository at this point in the history
  • Loading branch information
RePod committed Mar 5, 2024
1 parent fc26b05 commit 78e58cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/site.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ var rtv = {
for (repo of list) {
try {
console.log(`Loading ${repo}`)
var data = await $.ajax({url:repo}).then(j=>JSON.parse(j));
var data = await $.ajax({dataType:"json", url: repo}).then(j => typeof j === "object" ? j : JSON.parse(j));

data.self = new URL(repo, document.baseURI).href;
data.prefix = data.self.substr(0, data.self.lastIndexOf('/')+1);
Expand Down

0 comments on commit 78e58cb

Please sign in to comment.