better url parsing

This commit is contained in:
2025-01-26 12:05:14 +00:00
parent d9579b5398
commit efefe08582
+1 -1
View File
@@ -20,7 +20,7 @@ const fetch = fetch_retry(globalThis.fetch, { retries: 10, retryDelay: attempts
* @property {String} scope * @property {String} scope
*/ */
const redirect_uri = location.href.split('?')[0] const redirect_uri = location.origin+location.pathname
const proxy_uri = new URL('/oauth2/token', import.meta.url) const proxy_uri = new URL('/oauth2/token', import.meta.url)
/** /**