add home.html to service worker
This commit is contained in:
@@ -73,6 +73,8 @@ function toPath(url: string): string {
|
|||||||
html = "./invite.html";
|
html = "./invite.html";
|
||||||
} else if (path.startsWith("/template/") || path === "/template") {
|
} else if (path.startsWith("/template/") || path === "/template") {
|
||||||
html = "./template.html";
|
html = "./template.html";
|
||||||
|
} else if (path === "/") {
|
||||||
|
html = "./home.html";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return html || Url.pathname;
|
return html || Url.pathname;
|
||||||
|
Reference in New Issue
Block a user