new release

This commit is contained in:
idk
2019-03-04 00:17:12 -05:00
parent ea80791bb4
commit 71588697b5
4 changed files with 9 additions and 6 deletions

View File

@@ -20,7 +20,7 @@ uninstall:
clobber:
rm -f ../i2psetproxy.js.zip ../i2p_proxy*.xpi
VERSION=1.16
VERSION=1.17
xpi:
mv ~/Downloads/i2p_proxy-$(VERSION)-an+fx.xpi ../i2psetproxy.js@eyedeekay.github.io.xpi

View File

@@ -8,7 +8,7 @@
"permissions": ["theme", "proxy", "privacy", "storage"],
"manifest_version": 2,
"name": "__MSG_extensionName__",
"version": "1.16",
"version": "1.17",
"description": "__MSG_extensionDescription__",
"icons": {
"48": "icons/toopie.png"

View File

@@ -83,7 +83,12 @@ function onError(e) {
console.error(e);
}
var controlHost = "127.0.0.1" //getControlHost()
var controlPort = "7951" //getControlPort();
function setupProxy() {
var controlHost = getControlHost();
var controlPort = getControlPort();
if (isFirefox()) {
if (getScheme() == "http") {
var proxySettings = {
@@ -170,7 +175,7 @@ function updateUI(restoredSettings) {
const controlportitem = document.getElementById("controlport")
controlportitem.value = restoredSettings.control_port
console.log("showing control port:", controlportitem.value)
setupProxy()
}
function SetHostText(){
@@ -219,10 +224,8 @@ SetControlHelpText()
function RefreshIdentity(){
console.log("Generating new identity")
const controlhost = getControlHost();
const controlport = getControlPort();
const Http = new XMLHttpRequest();
const url='http://' + controlhost + ":" + controlport
const url='http://' + controlHost + ":" + controlPort
Http.open("GET", url);
Http.send();
Http.onreadystatechange=(e)=>{