Skip to content

Commit

Permalink
解决音频无法预览的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
libsgh committed Nov 16, 2021
1 parent 8f687fd commit 0695f11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/pan/mdui/view-audio.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
var mode = $("#file_link").attr("data-mode");
var fullUrl = encodeURI(window.location.protocol + "//"+window.location.host + path);
var url = "{{.DownloadUrl}}";
if(mode == "native" || mode == "ftp" || mode == "webdav"{
if(mode == "native" || mode == "ftp" || mode == "webdav"){
url = fullUrl;
}
var n = '{{ (index .List 0).FileName }}';
Expand Down

0 comments on commit 0695f11

Please sign in to comment.