fix(rules): update from gh-pages build (#656)

* fix(rules): update from gh-pages build

* bad link
This commit is contained in:
NeverBehave 2021-09-25 11:31:34 -07:00 committed by GitHub
parent 5a5e365e65
commit e7faeb24a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -12,12 +12,12 @@ export function refreshRules(success) {
success && success();
});
};
fetch('https://raw.githubusercontent.com/DIYgod/RSSHub/master/assets/radar-rules.js')
fetch('https://rsshub.js.org/build/radar-rules.js')
.then((response) => {
done(response);
})
.catch(() => {
fetch('https://cdn.jsdelivr.net/gh/DIYgod/RSSHub@master/assets/radar-rules.js').then((response) => {
fetch('https://cdn.jsdelivr.net/gh/DIYgod/RSSHub@gh-pages/build/radar-rules.js').then((response) => {
done(response);
});
});