API should return something

This commit is contained in:
tophf 2022-09-16 12:40:14 +03:00
parent d1f5468a81
commit da4bdc6821

View File

@ -71,9 +71,10 @@ const usoApi = {};
return true;
};
function ping(id, resolve) {
return fetch(`${URLS.uso}styles/install/${id}?source=stylish-ch`)
.then(resolve);
async function ping(id, resolve) {
await fetch(`${URLS.uso}styles/install/${id}?source=stylish-ch`);
if (resolve) resolve(true);
return true;
}
function makeKey(key, {badKeys, newKeys}) {