mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-06 04:44:21 +01:00
fix: remove unused disabled prop, throttle SW update checks, precache icon
This commit is contained in:
1 parent
a56d86e98a
commit
685ee219d8
6 files changed
+14
-17
No files matched your search
@@ -5,7 +5,12 @@ import type { Plugin } from "vite";
|
||||
|
||||
const SW_FILENAME = "sw.js";
|
||||
const PRECACHE_DIR_PREFIXES = ["assets/"];
|
||||
const PRECACHE_ROOT_FILES = ["index.html", "manifest.json", "favicon.svg"];
|
||||
const PRECACHE_ROOT_FILES = [
|
||||
"index.html",
|
||||
"manifest.json",
|
||||
"favicon.svg",
|
||||
"icons/icon-192x192.png",
|
||||
];
|
||||
|
||||
async function collectFiles(dir: string, base = dir): Promise<string[]> {
|
||||
const entries = await readdir(dir, { withFileTypes: true });
|
||||
|
||||
Reference in new issue
Block a user