2 Commits

Author SHA1 Message Date
idk
83b5dcc4b4 fix Open WebUI button on torrent menu 2021-12-02 20:45:42 -05:00
idk
73f2883fbd address erroneous text issue #113 2021-12-02 19:50:33 -05:00
9 changed files with 22 additions and 16 deletions

View File

@@ -37,11 +37,11 @@ clean: rc clean-artifacts
## EVEN RELEASES are AMO RELEASES
## ODD RELEASES are SELFHOSTED RELEASES
MOZ_VERSION=0.128
VERSION=0.127
MOZ_VERSION=0.126
VERSION=0.125
## INCREMENT THIS EVERY TIME YOU DO A RELEASE
LAST_VERSION=0.125
LAST_VERSION=0.123
YELLOW=F7E59A
ORANGE=FFC56D

View File

@@ -20,7 +20,7 @@
"description": "Description of the extension."
},
"extensionVersion": {
"message": "1.28",
"message": "0.108",
"description": "Version of the extension."
},
"proxyFailedStatus": {

View File

@@ -20,7 +20,7 @@
"description": "Descripción de la extensión."
},
"extensionVersion": {
"message": "1.28",
"message": "0.108",
"description": "Versión de la extensión."
},
"proxyFailedStatus": {

View File

@@ -12,7 +12,6 @@ function contentUpdateById(id, message) {
contentUpdateById("text-section-header", "extensionName");
contentUpdateById("description", "extensionDescription");
contentUpdateById("i2pbrowser-version", "extensionVersion");
contentUpdateById("proxy-check", "proxyFailedStatus");
// Control Section
contentUpdateById("controlHeader", "controlHeader");
@@ -54,6 +53,12 @@ fetch("http://proxy.i2p").then((myJson) => {
if (readyness != null) {
hide(readyness);
}
}, (error) => {
contentUpdateById("proxy-check", "proxyFailedStatus");
let readyness = document.querySelectorAll(".readyness");
if (readyness != null) {
hide(readyness);
}
});
function hide(elements) {

View File

@@ -95,8 +95,7 @@ function i2pHostName(url) {
function i2pHost(url) {
let hostname = i2pHostName(url);
let postname = hostname.split(":")[0]
return postname.endsWith(".i2p");
return hostname.endsWith(".i2p");
}
function routerHost(url) {

View File

@@ -126,6 +126,9 @@ document.addEventListener("click", (clickEvent) => {
} else if (clickEvent.target.id === "window-visit-torrent") {
console.log("attempting to create torrent tab");
goTorrent();
} else if (clickEvent.target.id === "torrentui-opener") {
console.log("attempting to create torrent tab");
goSnark();
} else if (clickEvent.target.id === "window-visit-help") {
console.log("attempting to create torrent tab");
goHelp();

View File

@@ -2,8 +2,7 @@
"browser_specific_settings": {
"gecko": {
"id": "i2ppb@eyedeekay.github.io",
"strict_min_version": "91.1.0",
"update_url": "https://thiswillneedtobeaneephttpdbase32address.b32.i2p/updates.json"
"strict_min_version": "91.1.0"
}
},
"permissions": [
@@ -28,7 +27,7 @@
],
"manifest_version": 2,
"name": "__MSG_extensionName__",
"version": "0.123",
"version": "0.125",
"description": "__MSG_extensionDescription__",
"homepage_url": "https://github.com/eyedeekay/I2P-in-Private-Browsing-Mode-Firefox",
"icons": {

View File

@@ -446,11 +446,10 @@ function i2pHostName(url) {
function i2pHost(url) {
let hostname = i2pHostName(url);
let postname = hostname.split(":")[0];
if (postname.endsWith(".i2p")) {
console.log("(hostname) i2p", postname);
if (hostname.endsWith(".i2p")) {
console.log("(hostname) i2p", hostname);
}
return postname.endsWith(".i2p");
return hostname.endsWith(".i2p");
}
function onContextGotLog(contexts) {

View File

@@ -121,7 +121,8 @@
<div id="torrents-pane">
<header>
<h1>Torrent Controls</h1>
<a class="webui-opener" href="#" target="_blank"><img alt="Open Web UI" src="images/i2plogo.png"></a> <!--<a class="config-opener" href="#">
<img alt="Open WebUI" src="icons/i2plogo.png">
<a class="webui-opener" id="torrentui-opener" href="#">Open WebUI</a> <!--<a class="config-opener" href="#">
<img alt="Settings" src="images/gear.svg"></a>
<a class="info-opener" href="https://github.com/myfreeweb/transmitter" target="_blank">
<img alt="Extension Info" src="images/info.svg"></a>-->