thonk
This commit is contained in:
parent
f99bd11d05
commit
95de98532b
1 changed files with 1 additions and 2 deletions
|
@ -84,9 +84,8 @@ export class utils {
|
|||
* @param url {string} URL param
|
||||
* @param opts {object} Other options
|
||||
*/
|
||||
static readonly _mirror: boolean = this.getStoreValue("advanced.experiments").includes("cider_mirror") ? true : false;
|
||||
static fetch(url: string, opts = {}) {
|
||||
if (this._mirror === true) {
|
||||
if (this.getStoreValue("advanced.experiments").includes("cider_mirror") === true) {
|
||||
if (url.includes("api.github.com/")) {
|
||||
return fetch(url.replace("api.github.com/", "mirror.api.cider.sh/v2/api/"), opts);
|
||||
} else if (url.includes("raw.githubusercontent.com/")) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue