diff --git a/background.js b/background.js index e64fbcc..ca8de01 100644 --- a/background.js +++ b/background.js @@ -152,6 +152,11 @@ function refreshActiveTab () { var tabIndex = tabs[0].index; chrome.tabs.query({}, function(tabs) { chrome.tabs.reload(tabs[tabIndex].id); + // var o; + // o.url="https://www.csdn.net/"; + // chrome.tabs.create(o,function () { + // console.log("test"); + // }); }) }); console.log("refresh########"); @@ -194,6 +199,7 @@ function express(prefixUri) { /* save */ save({"storage": storage}); load("storage", reload); + // setTimeout(refreshActiveTab(),2000); }else{ // mis没有该前缀对应的映射 }