Fix can't preview some url
This commit is contained in:
parent
6b0a42af27
commit
d261fdbbc0
2 changed files with 2 additions and 2 deletions
|
@ -16,6 +16,6 @@ function wrap(url: string): string {
|
|||
return url != null
|
||||
? url.startsWith('https://')
|
||||
? url
|
||||
: `https://images.weserv.nl/?url=${url.replace(/^http:\/\//, '')}`
|
||||
: `https://images.weserv.nl/?url=${encodeURIComponent(url.replace(/^http:\/\//, ''))}`
|
||||
: null;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue