Browse Source

fix(RepoPage): show readme for non github pages

when disabling the proxy, the update inadvertantly prevented
calling the original url.
master
DanConwayDev 2 years ago
parent
commit
ae232c3ee1
No known key found for this signature in database
GPG Key ID: 68E15486D73F75E1
  1. 4
      src/lib/stores/repo.ts

4
src/lib/stores/repo.ts

@ -106,10 +106,6 @@ const ensureRepoReadme = async (clone: string[], a: string): Promise<void> => { @@ -106,10 +106,6 @@ const ensureRepoReadme = async (clone: string[], a: string): Promise<void> => {
]
for (let i = 0; i < readme_urls.length; i++) {
try {
// temporarily disable using proxy
if (!readme_urls[i].includes('raw.githubusercontent.com')) {
continue
}
const res = await fetch(
readme_urls[i]
// readme_urls[i].includes('raw.githubusercontent.com')

Loading…
Cancel
Save