From 4174e9cd5e004e347b4e25bdd7e0b92d97516d7b Mon Sep 17 00:00:00 2001 From: antisnatchor Date: Tue, 22 Nov 2011 16:15:20 +0100 Subject: [PATCH] fixed lame JS error in net.js --- core/main/client/net.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/core/main/client/net.js b/core/main/client/net.js index d80cca42c..682f7e6b6 100644 --- a/core/main/client/net.js +++ b/core/main/client/net.js @@ -145,12 +145,11 @@ beef.net = { */ request: function(scheme, method, domain, port, path, anchor, data, timeout, dataType, callback) { //check if same domain or cross domain + var cross_domain = true; if (document.domain == domain){ if(document.location.port == "" || document.location.port == null){ cross_domain = !(port == "80" || port == "443"); } - }else{ - cross_domain = true; } //build the url @@ -218,12 +217,11 @@ beef.net = { proxyrequest: function(scheme, method, domain, port, path, anchor, data, timeout, dataType, requestid, callback) { //check if same domain or cross domain + var cross_domain = true; if (document.domain == domain){ if(document.location.port == "" || document.location.port == null){ cross_domain = !(port == "80" || port == "443"); } - }else{ - cross_domain = true; } //build the url