Skip to content

Commit 5fa0514

Browse files
committed
update the service worker
1 parent 7ea108a commit 5fa0514

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/webpage/service.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,17 +52,16 @@ function samedomain(url: string | URL) {
5252
return new URL(url).origin === self.origin;
5353
}
5454

55-
const htmlFiles = new Set(["/index", "/login", "/home", "/register", "/oauth2/auth"]);
55+
let enabled = "false";
56+
let offline = false;
5657

58+
const htmlFiles = new Set(["/index", "/login", "/home", "/register", "/oauth2/auth", "/reset"]);
5759
function isHtml(url: string): string | void {
5860
const path = new URL(url).pathname;
5961
if (htmlFiles.has(path) || htmlFiles.has(path + ".html")) {
6062
return path + path.endsWith(".html") ? "" : ".html";
6163
}
6264
}
63-
let enabled = "false";
64-
let offline = false;
65-
6665
function toPath(url: string): string {
6766
const Url = new URL(url);
6867
let html = isHtml(url);

0 commit comments

Comments
 (0)