mirror of
https://github.com/lifegpc/eh-downloader.git
synced 2026-06-15 10:04:28 +08:00
Update
This commit is contained in:
@@ -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/[email protected]/",
|
||||
);
|
||||
}
|
||||
for (const v of Object.getOwnPropertyNames(map)) {
|
||||
if (v.endsWith("/") && i.startsWith(v)) {
|
||||
return i.replace(v, map[v]);
|
||||
|
||||
Reference in New Issue
Block a user