fix
This commit is contained in:
parent
faf7792a09
commit
7a2b2adc23
File diff suppressed because one or more lines are too long
|
|
@ -189,7 +189,8 @@ export const Root = () => {
|
||||||
<div
|
<div
|
||||||
className={cx(
|
className={cx(
|
||||||
"absolute flex flex-col items-stretch flex-1 bg-white main-content-preview",
|
"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`
|
? css`
|
||||||
@media (min-width: 768px) {
|
@media (min-width: 768px) {
|
||||||
border-left: 1px solid #ccc;
|
border-left: 1px solid #ccc;
|
||||||
|
|
|
||||||
|
|
@ -19,8 +19,12 @@ const g = {
|
||||||
|
|
||||||
async function install() {
|
async function install() {
|
||||||
const cache = await caches.open(version);
|
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()));
|
addEventListener("install", (e) => (e as ExtendableEvent).waitUntil(install()));
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue