Remove double slash

This commit is contained in:
Lucas Sköld
2024-08-17 16:02:38 +02:00
parent 1a4b0104f4
commit 2bfbfc63ef
+1 -1
View File
@@ -26,7 +26,7 @@ export class SettingUtils {
if (!options.headers) {
options.headers = {};
}
const url = `${location.protocol}//${location.host}${route}`;
const url = `${location.protocol}/${location.host}${route}`;
try {
const response = await fetch(url, options);
const data = await response.json();