feat: support change media upload service

This commit is contained in:
codytseng
2025-04-08 14:23:16 +08:00
parent 2e552c356c
commit bc0fa7f528
11 changed files with 198 additions and 41 deletions

View File

@@ -41,7 +41,12 @@ export function normalizeHttpUrl(url: string): string {
}
export function simplifyUrl(url: string): string {
return url.replace('wss://', '').replace('ws://', '').replace(/\/$/, '')
return url
.replace('wss://', '')
.replace('ws://', '')
.replace('https://', '')
.replace('http://', '')
.replace(/\/$/, '')
}
export function isLocalNetworkUrl(urlString: string): boolean {