Skip to content

Commit 6a6fb75

Browse files
SamsonSamson
Samson
authored and
Samson
committed
use the staging server where appropiate
1 parent 9399599 commit 6a6fb75

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

Diff for: js/views/app.js

+7-2
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,13 @@ define([
6262
var that = this;
6363
$.ajaxPrefilter( function( options, originalOptions, jqXHR ) {
6464
// Your server goes below
65-
if(options.url.indexOf('proxino') === -1) {
66-
options.url = 'https://s.apiengine.io' + options.url;
65+
if(options.url.indexOf('proxino') === -1) {
66+
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+
}
6772
//options.url = 'http://192.168.2.111:3000' + options.url;
6873
}// else {
6974
//options.url = 'http://d3gscmgl75g1oq.cloudfront.net' + options.url;

0 commit comments

Comments
 (0)