(path: string)
| 56 | let resourceBaseUrl = ""; |
| 57 | |
| 58 | let baseConfigURL = |
| 59 | "https://raw.githubusercontent.com/TeleBoxOrg/TeleBox-Plugins/refs/heads/main/eat/config.json"; |
| 60 | |
| 61 | function resolveResourceUrl(path: string): string { |
| 62 | if (path.startsWith("http://") || path.startsWith("https://")) { |
| 63 | return path; |
| 64 | } |
| 65 | return `${resourceBaseUrl}/${path}`; |
| 66 | } |