This commit is contained in:
idk
2020-12-03 13:17:06 -05:00
parent cd3dafe9c8
commit 374ce51eff
5 changed files with 25 additions and 1 deletions

View File

@@ -49,6 +49,5 @@ contentUpdateById('window-visit-releases', 'windowVisitReleases');
contentUpdateById('releases', 'releases');
fetch('http://proxy.i2p').then((myJson) => {
console.log('FETCH RESULT', myJson);
contentUpdateById('proxy-check', 'proxySuccessStatus');
});

View File

@@ -272,4 +272,10 @@ img.readyness {
}
input {
color: #1f1a24
}
#hidden {
display: none
}
.hidden {
display: none
}

12
info.js
View File

@@ -61,6 +61,9 @@ document.addEventListener("click", (clickEvent) => {
creating.then(() => {
console.log("The news panel has been created");
});
} else if (clickEvent.target.id === "visit-irc") {
browser.sidebarAction.setPanel({ panel: "http://127.0.0.1:7669" });
browser.sidebarAction.open();
} else if (clickEvent.target.id === "generate-fresh-tunnel") {
function refreshIdentity() {
console.log("Generating new identity");
@@ -332,3 +335,12 @@ const interval = minutes * 60 * 1000;
setInterval(function () {
if (UpdateContents !== undefined) UpdateContents();
}, interval);
fetch("http://127.0.0.1:7669").then((myJson) => {
if (myJson.status == 200) {
let irc = document.getElementById("visit-irc");
if (irc != null) {
irc.classList.remove("hidden");
}
}
});

View File

@@ -14,4 +14,10 @@ button {
}
.button-list {
display: inline
}
#hidden {
display: none
}
.hidden {
display: none
}

View File

@@ -40,6 +40,7 @@
<div id="i2pbrowser-description">
<p id="description">You are now able to use I2P in this browser.</p>
<button class="hidden" id="visit-irc">Visit IRC</button>
</div>
</div>