Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
idk committed Jun 20, 2023
1 parent 054348b commit 00353f5
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
4 changes: 2 additions & 2 deletions consoleinfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function hide(elementsToHide) {
? elementsToHide
: [elementsToHide];
elements.forEach((element) => {
console.log("(consoleinfo) hiding")
console.log("(consoleinfo) hiding");
el.classList.add("hidden");
});
}
Expand All @@ -39,7 +39,7 @@ function unhide(elementsToShow) {
: [elementsToShow];
elements.forEach((element) => {
if (element.style) {
console.log("(consoleinfo) unhiding")
console.log("(consoleinfo) unhiding");
el.classList.remove("hidden");
}
});
Expand Down
9 changes: 7 additions & 2 deletions host.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
function isProxyHost(requestDetails) {
if (requestDetails.url.includes(control_host()+":"+control_port()+"/jsonrpc")) return false;
if (
requestDetails.url.includes(
control_host() + ":" + control_port() + "/jsonrpc"
)
)
return false;
const originUrl = requestDetails.originUrl;
const isWindowOrHomeUrl =
originUrl !== browser.runtime.getURL("window.html") &&
Expand Down Expand Up @@ -168,7 +173,7 @@ function isRouterHost(url) {
path = url.replace(protocol + hostname + "/", "");
} else if (identifyProtocolHandler(url)) {
const newUrl = identifyProtocolHandler(url);
console.log("(host) testing router host protocol handler identified")
console.log("(host) testing router host protocol handler identified");
return isRouterHost(newUrl);
} else {
hostname = url.split("/")[0];
Expand Down
Binary file removed [email protected]
Binary file not shown.
5 changes: 2 additions & 3 deletions proxyinfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function hide(elements) {
const elems = Array.isArray(elements) ? elements : [elements];
elems.forEach((elem) => {
if (elem.style) {
console.log("(proxyinfo) hiding")
console.log("(proxyinfo) hiding");
elem.classList.add("hidden");
}
});
Expand All @@ -42,7 +42,7 @@ function unhide(elements) {
const elems = Array.isArray(elements) ? elements : [elements];
elems.forEach((elem) => {
if (elem.style) {
console.log("(proxyinfo) unhiding")
console.log("(proxyinfo) unhiding");
elem.classList.remove("hidden");
}
});
Expand Down Expand Up @@ -76,4 +76,3 @@ fetch("http://127.0.0.1:7657/jsonrpc/")
var toopieIDLinks = document.querySelectorAll(".window-visit-toopie");
hide(toopieIDLinks);
});

0 comments on commit 00353f5

Please sign in to comment.