add reset functionality
This commit is contained in:
13
proxy.js
13
proxy.js
@@ -60,3 +60,16 @@ function setupProxy() {
|
||||
console.log("i2p settings created for Chromium")
|
||||
}
|
||||
}
|
||||
|
||||
function RefreshIdentity(){
|
||||
console.log("Generating new identity")
|
||||
const Http = new XMLHttpRequest();
|
||||
const url='http://' + getControlHost() + ":" + getControlPort();
|
||||
Http.open("GET", url);
|
||||
Http.send();
|
||||
Http.onreadystatechange=(e)=>{
|
||||
console.log(Http.responseText)
|
||||
}
|
||||
}
|
||||
|
||||
browser.browserAction.onClicked.addListener(RefreshIdentity);
|
||||
|
Reference in New Issue
Block a user