Revert "Update jot-header.tpl"

This reverts commit f5c48aa594.
This commit is contained in:
Ray 2023-02-27 10:08:11 -05:00
parent f5c48aa594
commit d77f952cc9

View file

@ -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>`;