API should return something
This commit is contained in:
parent
d1f5468a81
commit
da4bdc6821
|
@ -71,9 +71,10 @@ const usoApi = {};
|
||||||
return true;
|
return true;
|
||||||
};
|
};
|
||||||
|
|
||||||
function ping(id, resolve) {
|
async function ping(id, resolve) {
|
||||||
return fetch(`${URLS.uso}styles/install/${id}?source=stylish-ch`)
|
await fetch(`${URLS.uso}styles/install/${id}?source=stylish-ch`);
|
||||||
.then(resolve);
|
if (resolve) resolve(true);
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
function makeKey(key, {badKeys, newKeys}) {
|
function makeKey(key, {badKeys, newKeys}) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user