瀏覽代碼

several small fixes

tags/v1.0.0
Remco 9 年之前
父節點
當前提交
6a1e6d7ad0
共有 2 個文件被更改,包括 3 次插入2 次删除
  1. +1
    -1
      transfersh-server/static/scripts/main.js
  2. +2
    -1
      transfersh-web/scripts/main.js

+ 1
- 1
transfersh-server/static/scripts/main.js
文件差異過大導致無法顯示
查看文件


+ 2
- 1
transfersh-web/scripts/main.js 查看文件

@@ -57,7 +57,8 @@ $(document).ready(function () {
$(li).html('<span>Error (' + xhr.status + ') during upload of file ' + file.name + '</span>');
}

files.push(URI(xhr.responseText).absoluteTo(location.href).toString());
files.push(xhr.responseText.replace("https://transfer.sh/", "").replace("\n", ""));
// files.push(URI(xhr.responseText).absoluteTo(location.href).toString());

$(".download-zip").attr("href", URI("(" + files.join(",") + ").zip").absoluteTo(location.href).toString());
$(".download-tar").attr("href", URI("(" + files.join(",") + ").tar.gz").absoluteTo(location.href).toString());


Loading…
取消
儲存