This commit is contained in:
Rizky 2024-08-18 12:35:47 +07:00
parent faf7792a09
commit 7a2b2adc23
3 changed files with 11 additions and 6 deletions

File diff suppressed because one or more lines are too long

View File

@ -189,7 +189,8 @@ export const Root = () => {
<div
className={cx(
"absolute flex flex-col items-stretch flex-1 bg-white main-content-preview",
base.mode === "mobile"
base.mode === "mobile" &&
["prasi.avolut.com", "localhost:4550"].includes(location.host)
? css`
@media (min-width: 768px) {
border-left: 1px solid #ccc;

View File

@ -19,8 +19,12 @@ const g = {
async function install() {
const cache = await caches.open(version);
await cache.addAll([...manifest, ...files]);
g.broadcast({ type: "installed" });
const entries = [...manifest, ...files];
if (entries.length > 0) {
await cache.addAll(entries);
g.broadcast({ type: "installed" });
}
}
addEventListener("install", (e) => (e as ExtendableEvent).waitUntil(install()));