feat: isolated discovery

This commit is contained in:
TrèsAbhi committed 2024-06-05 18:35:44 -05:00
1 parent a36ffe74c4
commit 93c7392d6e
3 files changed
+109 -3

No files matched your search

+2 -2
View File
@@ -1,6 +1,6 @@
import { ASSETS_REPO } from '../../constants/assets';
import isDev from './isDev';
export function asset(path: string) {
return `https://raw.githubusercontent.com/tresabhi/${ASSETS_REPO}/${isDev() ? 'dev' : 'main'}/${path}`;
export function asset(path: string, dev = isDev()) {
return `https://raw.githubusercontent.com/tresabhi/${ASSETS_REPO}/${dev ? 'dev' : 'main'}/${path}`;
}