Skip to content

Commit

Permalink
Remove extra parethesis at line 14
Browse files Browse the repository at this point in the history
  • Loading branch information
samuellouf authored Sep 11, 2024
1 parent 555cc58 commit ef4ea33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions redirect.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function tryto(func){

document.addEventListener('DOMContentLoaded', async function (event) {
var func = async () => {
var redirections = (await fetch('https://samuellouf.github.io/api/samuellouf-website/v1/redirections.json')).then((r) => r.json());
var redirections = await fetch('https://samuellouf.github.io/api/samuellouf-website/v1/redirections.json').then((r) => r.json());
const isURLCompatible = (origin) => {
return window.location.href.startsWith(origin);
}
Expand All @@ -27,4 +27,4 @@ document.addEventListener('DOMContentLoaded', async function (event) {
}
}
tryto(func);
})
})

0 comments on commit ef4ea33

Please sign in to comment.