From 63fb0195699cebb2a6386a7b84f8424b01789c58 Mon Sep 17 00:00:00 2001 From: free will <2647778488@qq.com> Date: Wed, 7 Oct 2020 15:41:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B3=A8=E9=87=8A=E4=BA=86=E5=87=A0=E8=A1=8C?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=EF=BC=8C=E6=8F=92=E4=BB=B6=E4=B8=8D=E6=8A=A5?= =?UTF-8?q?=E9=94=99=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- background.js | 10 +++++----- popup/popup.js | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/background.js b/background.js index 229d9b6..e3a92ea 100644 --- a/background.js +++ b/background.js @@ -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); } // 如果没有命中缓存映射表,但是它是一个检索内容的网络请求 diff --git a/popup/popup.js b/popup/popup.js index c845002..389c2a7 100644 --- a/popup/popup.js +++ b/popup/popup.js @@ -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(); })