Tasks, Env, Logs are ready for beta testing.

This commit is contained in:
abdulmohsen
2024-05-04 10:12:59 +03:00
parent df7e72839e
commit f1417a554b
5 changed files with 44 additions and 54 deletions

View File

@@ -11,7 +11,7 @@ const api_token = useStorage('api_token', '')
* @param options {RequestInit}
* @returns {Promise<Response>}
*/
export default async function request(url, options) {
export default async function request(url, options = {}) {
if (!api_token.value) {
throw new Error('API token is not set');
}