File tree 2 files changed +7
-4
lines changed
2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 1
1
2
- i
3
-
4
2
5
3
6
4
[ ![ Build Status] ( https://secure.travis-ci.org/ApiEngine/apiengine-client.png?branch=master )] ( http://travis-ci.org/ApiEngine/apiengine-client )
Original file line number Diff line number Diff line change @@ -73,8 +73,13 @@ define([
73
73
var that = this ;
74
74
$ . ajaxPrefilter ( function ( options , originalOptions , jqXHR ) {
75
75
// Your server goes below
76
- if ( options . url . indexOf ( 'proxino' ) === - 1 ) {
77
- options . url = 'https://s.apiengine.io' + options . url ;
76
+ if ( options . url . indexOf ( 'proxino' ) === - 1 ) {
77
+ if ( window . location . host === 'apiengine.io' ) {
78
+ options . url = 'https://x.apiengine.io' + options . url ;
79
+
80
+ } else {
81
+ options . url = 'https://s.apiengine.io' + options . url ;
82
+ }
78
83
//options.url = 'http://192.168.2.111:3000' + options.url;
79
84
} // else {
80
85
//options.url = 'http://d3gscmgl75g1oq.cloudfront.net' + options.url;
You can’t perform that action at this time.
0 commit comments