mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-06 10:11:38 +09:00
Make proper URL if download URL is a partial relative URL
This commit is contained in:
parent
af65e81d3e
commit
dd561d9159
1 changed files with 6 additions and 0 deletions
|
|
@ -184,6 +184,9 @@
|
|||
if(result.original_type === 'image/gif') {
|
||||
temp_code += '<video src="' + result.download_url + '" autoplay loop muted playsinline data-file-srl="' + result.file_srl + '" />';
|
||||
} else if (result.download_url.match(/\bprocFileDownload\b/)) {
|
||||
if (result.download_url.match(/^\?/)) {
|
||||
result.download_url = XE.URI(default_url).pathname() + result.download_url;
|
||||
}
|
||||
temp_code += '<video src="' + result.download_url + '" controls preload="none" data-file-srl="' + result.file_srl + '" />';
|
||||
} else {
|
||||
temp_code += '<video src="' + result.download_url + '" controls data-file-srl="' + result.file_srl + '" />';
|
||||
|
|
@ -359,6 +362,9 @@
|
|||
if(result.original_type === 'image/gif') {
|
||||
temp_code += '<video src="' + result.download_url + '" autoplay loop muted playsinline data-file-srl="' + result.file_srl + '" />';
|
||||
} else if (result.download_url.match(/\bprocFileDownload\b/)) {
|
||||
if (result.download_url.match(/^\?/)) {
|
||||
result.download_url = XE.URI(default_url).pathname() + result.download_url;
|
||||
}
|
||||
temp_code += '<video src="' + result.download_url + '" controls preload="none" data-file-srl="' + result.file_srl + '" />';
|
||||
} else {
|
||||
temp_code += '<video src="' + result.download_url + '" controls data-file-srl="' + result.file_srl + '" />';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue