mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 06:15:11 +00:00
parent
f5c48aa594
commit
d77f952cc9
1 changed files with 1 additions and 2 deletions
|
@ -778,8 +778,7 @@ let postSaveTimer = null;
|
|||
case "audio/mpeg":
|
||||
return `<li class="border rounded my-1 p-2"><h4>${result.filename}</h4><audio src="/cloud/${address}/${result.display_path}" controls="controls" preload="none" /></li>`;
|
||||
case "text/html":
|
||||
window.location = `view-source:${baseurl}/cloud/${address}/${result.display_path}`;
|
||||
return`<li class="border rounded my-1 p-2"><h4>${result.filename}</h4><iframe src="${window.location}" ></iframe></li>`;
|
||||
return`<li class="border rounded my-1 p-2"><h4>${result.filename}</h4><iframe src="view-source:${baseurl}/cloud/${address}/${result.display_path}" ></iframe></li>`;
|
||||
case "application/json":
|
||||
case "text/plain":
|
||||
return`<li class="border rounded my-1 p-2"><h4>${result.filename}</h4><iframe src="/cloud/${address}/${result.display_path}" ></iframe></li>`;
|
||||
|
|
Loading…
Reference in a new issue