From 55ed784f2b9bb2ce7dfae02862405f4dcfb0f67c Mon Sep 17 00:00:00 2001 From: lifegpc Date: Thu, 7 Sep 2023 22:35:52 +0800 Subject: [PATCH] Update --- fetch_static_files.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/fetch_static_files.ts b/fetch_static_files.ts index 1f84b3b..a0bebb2 100644 --- a/fetch_static_files.ts +++ b/fetch_static_files.ts @@ -8,6 +8,12 @@ const LIST: string[] = [ ]; function get_url(i: string) { + if (i.startsWith("preact-material-components/")) { + return i.replace( + "preact-material-components/", + "https://esm.sh/preact-material-components@1.6.1/", + ); + } for (const v of Object.getOwnPropertyNames(map)) { if (v.endsWith("/") && i.startsWith(v)) { return i.replace(v, map[v]);