feat: support change media upload service
This commit is contained in:
parent
2e552c356c
commit
bc0fa7f528
11 changed files with 198 additions and 41 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue