We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b0de09 commit 713fae9Copy full SHA for 713fae9
frontend/src/sw.ts
@@ -39,7 +39,9 @@ function handleWGRequest(event: FetchEvent) {
39
firmware_version = parsedUrl.searchParams.get("firmware_version");
40
firmware_version = firmware_version?.replace("+", "_") || null;
41
firmware_version = firmware_version?.replaceAll(".", "_") || null;
42
- url = url.slice(0, url.indexOf("?"));
+ if (url.indexOf("?") !== -1) {
43
+ url = url.slice(0, url.indexOf("?"));
44
+ }
45
} else {
46
receiver_id = event.request.headers.get("X-Connection-Id") as string;
47
}
0 commit comments