fixed lame JS error in net.js

This commit is contained in:
antisnatchor
2011-11-22 16:15:20 +01:00
parent 0866b0a8e1
commit 4174e9cd5e

View File

@@ -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