update fix the case for onUpdated listeners

This commit is contained in:
idk
2020-10-11 23:43:14 -04:00
parent db43f2760a
commit fff55eadd6
3 changed files with 9 additions and 4 deletions

View File

@@ -201,10 +201,10 @@ getxpi:
torrent: getxpi
rm -f "./i2ppb-$(VERSION)@eyedeekay.github.io.xpi.torrent"
mktorrent -a http://zviyq72xcmjupynn5y2f5qa3u7bxyu34jnqmwt6czte2l7idxm7q.b32.i2p/announce \
mktorrent -a http://w7tpbzncbcocrqtwwm3nezhnnsw4ozadvi2hmvzdhrqzfxfum7wa.b32.i2p/a \
-a http://zviyq72xcmjupynn5y2f5qa3u7bxyu34jnqmwt6czte2l7idxm7q.b32.i2p/announce \
-a http://s5ikrdyjwbcgxmqetxb3nyheizftms7euacuub2hic7defkh3xhq.b32.i2p/a \
-a http://uajd4nctepxpac4c4bdyrdw7qvja2a5u3x25otfhkptcjgd53ioq.b32.i2p/announce \
-a http://w7tpbzncbcocrqtwwm3nezhnnsw4ozadvi2hmvzdhrqzfxfum7wa.b32.i2p/a \
-a http://explodie.org:6969/announce \
-a http://tracker.opentrackr.org:1337/announce \
-a http://tracker.kamigami.org:2710/announce \

View File

@@ -113,7 +113,7 @@ var handleContextProxyRequest = async function(requestDetails) {
};
var tabGet = async function(tabId) {
try {
//console.log("(proxy)Tab ID from Request", tabId);
console.log("(proxy)Tab ID from Request", tabId);
let tabInfo = await browser.tabs.get(tabId);
return tabInfo;
} catch (error) {

View File

@@ -753,7 +753,12 @@ function getClearTab(tobj) {
console.log("(pageaction)", tab.id, tab.url)
}
}
browser.tabs.get(tobj.tabId).then(getTabURL, onError)
console.log(tobj)
if (typeof(tobj) == "number"){
browser.tabs.get(tobj).then(getTabURL, onError)
}else{
browser.tabs.get(tobj.tabId).then(getTabURL, onError)
}
}
browser.tabs.onActivated.addListener(getClearTab);