add reset functionality

This commit is contained in:
idk
2019-02-21 23:09:40 -05:00
parent 1de16215be
commit 412fcb6ba2
2 changed files with 19 additions and 16 deletions

View File

@@ -61,15 +61,3 @@ function setupProxy() {
}
}
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);