mirror of
https://gitee.com/willfree/MINResolveV2.git
synced 2026-06-03 08:16:55 +08:00
注释了几行代码,插件不报错了
This commit is contained in:
+5
-5
@@ -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
@@ -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();
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user