注释了几行代码,插件不报错了

This commit is contained in:
free will
2020-10-07 15:41:20 +08:00
parent 850a6e6fe3
commit 63fb019569
2 changed files with 6 additions and 6 deletions
+5 -5
View File
@@ -97,7 +97,7 @@ function reload(result) {
storage = new Storage();
if (result && result.storage) {
storage.fromObject(result.storage);
resetDownloadTimer();
// resetDownloadTimer();
}
}
@@ -308,13 +308,13 @@ function express(prefixUri) {
/* Handle runtime messages */
// browser.runtime.onMessage.addListener(function (message, sender, sendResponse) {
// if (message.method == "download" && !downloading) {
// downloadOnlineURLs();
// // downloadOnlineURLs();
// }
// else if (message.method == "isDownloading") {
// sendResponse(downloading);
// // sendResponse(downloading);
// }
// else {
// console.error("Unknown method");
// // console.error("Unknown method");
// }
// });
@@ -576,7 +576,7 @@ function handleRedirect(details) {
}else{
prefixTemp=getPrefixFromMinURI(minUri);
}
details.url = prefixTemp; //映射表中加了http协议头,这里就不要加了!!!
details.url = prefixTemp; //如果映射表中加了http协议头,这里就不要加了
return redirect(details);
}
// 如果没有命中缓存映射表,但是它是一个检索内容的网络请求
+1 -1
View File
@@ -19,7 +19,7 @@ function reload() {
if (item && item.storage) {
storage.fromObject(item.storage);
} else {
console.warn("Could not load options storage.");
// console.warn("Could not load options storage.");
}
displayAll();
})