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
|
||||
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;
|
||||
|
|
|
|||
|
|
@ -19,9 +19,13 @@ const g = {
|
|||
|
||||
async function install() {
|
||||
const cache = await caches.open(version);
|
||||
await cache.addAll([...manifest, ...files]);
|
||||
|
||||
const entries = [...manifest, ...files];
|
||||
if (entries.length > 0) {
|
||||
await cache.addAll(entries);
|
||||
g.broadcast({ type: "installed" });
|
||||
}
|
||||
}
|
||||
addEventListener("install", (e) => (e as ExtendableEvent).waitUntil(install()));
|
||||
|
||||
async function activate() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue