More #286 updates
git-svn-id: https://beef.googlecode.com/svn/trunk@758 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9
This commit is contained in:
@@ -115,12 +115,12 @@ beef.net = {
|
||||
// process a GET request
|
||||
if (method.toUpperCase() == "GET"){
|
||||
|
||||
//set the datatype to html if its the same domain and not set to execute
|
||||
if (same_domain && !execute){
|
||||
dataType = "html"
|
||||
}else{
|
||||
//otherwise set to script (either because you want to execute script or its cross domain)
|
||||
//set the dataType to script if set to execute
|
||||
if (execute){
|
||||
dataType = "script"
|
||||
}else{
|
||||
//otherwise leave blank
|
||||
dataType = ""
|
||||
}
|
||||
|
||||
//build and execute request
|
||||
|
||||
Reference in New Issue
Block a user