Skip to content
This repository has been archived by the owner on Nov 21, 2019. It is now read-only.

Commit

Permalink
发送种子链接前,判断密钥是否已设置
Browse files Browse the repository at this point in the history
  • Loading branch information
ronggang committed Mar 2, 2018
1 parent b6ac0cf commit 94e9be9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/extension/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,11 @@ var system = {
return;
}

if (!system.site.passkey) {
system.showStatusMessage("请先设置站点密钥(Passkey)。");
return;
}

var url = e.dataTransfer.getData('text/plain');
if (url) {
if (system.site.dropScript)
Expand Down Expand Up @@ -379,7 +384,7 @@ var system = {
folder = system.site.folders[0];
}

system.showStatusMessage("正在发送链接地址 " + url + " 到下载服务器", 0);
system.showStatusMessage("正在发送链接地址 " + (url.replace(system.site.passkey, "***")) + " 到下载服务器", 0);
chrome.extension.sendMessage({
action: "send-url-to-client",
url: url,
Expand Down

0 comments on commit 94e9be9

Please sign in to comment.