We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9399599 commit 6a6fb75Copy full SHA for 6a6fb75
js/views/app.js
@@ -62,8 +62,13 @@ define([
62
var that = this;
63
$.ajaxPrefilter( function( options, originalOptions, jqXHR ) {
64
// Your server goes below
65
- if(options.url.indexOf('proxino') === -1) {
66
- options.url = 'https://s.apiengine.io' + options.url;
+ if(options.url.indexOf('proxino') === -1) {
+ if(window.location.host === 'apiengine.io') {
67
+ options.url = 'https://x.apiengine.io' + options.url;
68
+
69
+ } else {
70
+ options.url = 'https://s.apiengine.io' + options.url;
71
+ }
72
//options.url = 'http://192.168.2.111:3000' + options.url;
73
}// else {
74
//options.url = 'http://d3gscmgl75g1oq.cloudfront.net' + options.url;
0 commit comments