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; 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}) {