update the extensions

This commit is contained in:
idk
2019-03-03 23:33:56 -05:00
parent a53fd94701
commit af50fd8a84
4 changed files with 8 additions and 5 deletions

View File

@@ -21,7 +21,7 @@ clobber:
rm -f ../i2psetproxy.js.zip ../i2p_proxy*.xpi
xpi:
mv ~/Downloads/i2p_proxy*.xpi ../i2psetproxy.js@eyedeekay.github.io.xpi
mv ~/Downloads/i2p_proxy-$(VERSION)-an+fx.xpi ../i2psetproxy.js@eyedeekay.github.io.xpi
cp:
cp ../i2psetproxy.js@eyedeekay.github.io.xpi ./i2psetproxy.js@eyedeekay.github.io.xpi
@@ -29,7 +29,7 @@ cp:
VERSION=1.15
version:
sed -i 's|$(shell grep "\"version\": " manifest.json)| \"version\": $(VERSION)|g' manifest.json
sed -i 's|$(shell grep "\"version\": " manifest.json)| \"version\": \"$(VERSION)\",|g' manifest.json
zip: version
zip --exclude="./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.15
"version": "1.15",
"description": "__MSG_extensionDescription__",
"icons": {
"48": "icons/toopie.png"

View File

@@ -16,6 +16,9 @@ browser.privacy.network.webRTCIPHandlingPolicy.set({value: "disable_non_proxied_
console.log("Preliminarily disabled WebRTC.")
var controlHost = "127.0.0.1"
var controlPort = "7951"
function setupProxy() {
if (isFirefox()) {
if (getScheme() == "http") {
@@ -63,8 +66,8 @@ function setupProxy() {
function RefreshIdentity(){
console.log("Generating new identity")
const controlhost = getControlHost();
const controlport = getControlPort();
const controlhost = controlHost;
const controlport = controlPort;
const Http = new XMLHttpRequest();
const url='http://' + controlhost + ":" + controlport
Http.open("GET", url);