Skip to content

Commit

Permalink
Fix lore url origin check
Browse files Browse the repository at this point in the history
  • Loading branch information
josephrocca authored Nov 26, 2023
1 parent 8e2db23 commit b8dfc24
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3197,6 +3197,7 @@ <h2 style="text-align:center;margin-bottom: 0.5rem;">Your Characters</h2>
let urlI = 0;
for(let url of loreBookUrls) {
let downloadUrl;
let origin = new URL(url).origin;
if(origin.endsWith("jsdelivr.net")
|| (origin.endsWith("huggingface.co") && url.includes("/resolve/"))
|| origin === "https://raw.githubusercontent.com"
Expand Down

0 comments on commit b8dfc24

Please sign in to comment.