Skip to content
This repository has been archived by the owner on Apr 17, 2023. It is now read-only.

Commit

Permalink
use jsonp as fallback for Titanium as well
Browse files Browse the repository at this point in the history
  • Loading branch information
edewit committed Apr 1, 2016
1 parent 7e61408 commit 9ca31bf
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/modules/api_act.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function doActCall(opts, success, fail){
}
return ajax({
"url": url,
"tryJSONP": typeof Titanium === 'undefined',
"tryJSONP": true,
"type": "POST",
"dataType": "json",
"data": JSON.stringify(params),
Expand Down
2 changes: 1 addition & 1 deletion src/modules/api_auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function callAuthEndpoint(endpoint, data, opts, success, fail){
ajax({
"url": path,
"type": "POST",
"tryJSONP": typeof Titanium === 'undefined',
"tryJSONP": true,
"data": JSON.stringify(data),
"dataType": "json",
"contentType": "application/json",
Expand Down
2 changes: 1 addition & 1 deletion src/modules/api_mbaas.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ module.exports = function(opts, success, fail){
params = fhparams.addFHParams(params);
return ajax({
"url": url,
"tryJSONP": typeof Titanium === 'undefined',
"tryJSONP": true,
"type": "POST",
"dataType": "json",
"data": JSON.stringify(params),
Expand Down
2 changes: 1 addition & 1 deletion src/modules/initializer.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ var loadCloudProps = function(app_props, callback) {
ajax({
"url": path,
"type": "POST",
"tryJSONP": typeof Titanium === 'undefined',
"tryJSONP": true,
"dataType": "json",
"contentType": "application/json",
"data": JSON.stringify(data),
Expand Down

0 comments on commit 9ca31bf

Please sign in to comment.