diff --git a/proxy.js b/proxy.js index 0c5f6e3..58e9519 100644 --- a/proxy.js +++ b/proxy.js @@ -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(), diff --git a/script.js b/script.js index 3242d3f..9d48243 100644 --- a/script.js +++ b/script.js @@ -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; }; } } diff --git a/scrub.js b/scrub.js index 5ed88d2..5ac002e 100644 --- a/scrub.js +++ b/scrub.js @@ -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; }; } }