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 19:31:34 +01:00
committed by GitHub
parent 5a5e365e65
commit e7faeb24a0
+2 -2
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);
});
});