From ca245bfedb4c57162388631aa861a7ee72da4c15 Mon Sep 17 00:00:00 2001 From: sugoidogo Date: Wed, 29 Jan 2025 17:42:56 +0000 Subject: [PATCH] fix reading properties of undefined --- static/WebStorage.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/WebStorage.mjs b/static/WebStorage.mjs index b112770..93caaaf 100644 --- a/static/WebStorage.mjs +++ b/static/WebStorage.mjs @@ -36,7 +36,7 @@ export default class WebStorage { * @param {String | URL} resource * @param {RequestInit} options */ - async fetch(resource, options) { + async fetch(resource, options={}) { resource = new URL(resource, this.#origin) if (resource.origin == this.#origin) { const token = await this.#auth_provider.getAccessTokenForUser()