undo broken check

This commit is contained in:
idk
2020-10-08 00:25:38 -04:00
parent 16b1990bd9
commit 7e97ab766a
3 changed files with 5 additions and 5 deletions

View File

@@ -33,7 +33,7 @@ var handleContextProxyRequest = async function(requestDetails) {
if (context != undefined) {
if (context.name == titlepref) {
var tab = tabGet(requestDetails.tabId);
if (!requestDetails.url.includes('/i2psnark/') && !requestDetails.url.endsWith("/")) {
if (!requestDetails.url.includes('/i2psnark/')) {
console.log('URL', requestDetails.url);
proxy = {
type: getScheme(),

View File

@@ -31,7 +31,7 @@ browser.runtime.onMessage.addListener(request => {
if (tmpsrc.host == location.host) {
img.src = 'http://127.0.0.1:7657/i2psnark/' + tmpsrc.host + tmpsrc.pathname;
img.onerror = function() {
img.src = tmpsrc
img.src = tmpsrc;
};
}
}
@@ -43,7 +43,7 @@ browser.runtime.onMessage.addListener(request => {
if (tmpsrc.host == location.host) {
img.src = 'http://127.0.0.1:7657/i2psnark/' + tmpsrc.host + tmpsrc.pathname;
img.onerror = function() {
img.src = tmpsrc
img.src = tmpsrc;
};
}
}

View File

@@ -626,7 +626,7 @@ var coolheadersSetup = function(e) {
if (tmpsrc.host == location.host) {
img.src = 'http://127.0.0.1:7657/i2psnark/' + tmpsrc.host + tmpsrc.pathname;
img.onerror = function() {
img.src = tmpsrc
img.src = tmpsrc;
};
}
}
@@ -649,7 +649,7 @@ var coolheadersSetup = function(e) {
if (tmpsrc.host == location.host) {
img.src = 'http://127.0.0.1:7657/i2psnark/' + tmpsrc.host + tmpsrc.pathname;
img.onerror = function() {
img.src = tmpsrc
img.src = tmpsrc;
};
}
}