Skip to content

Commit fedeec6

Browse files
author
Samson
committed
t push
Merge branch 'master' of github.com:apiengine/apiengine-client
2 parents 43e7e04 + 6a6fb75 commit fedeec6

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

README.md

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11

2-
i
3-
42

53

64
[![Build Status](https://secure.travis-ci.org/ApiEngine/apiengine-client.png?branch=master)](http://travis-ci.org/ApiEngine/apiengine-client)

js/views/app.js

+7-2
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,13 @@ define([
7373
var that = this;
7474
$.ajaxPrefilter( function( options, originalOptions, jqXHR ) {
7575
// 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+
}
7883
//options.url = 'http://192.168.2.111:3000' + options.url;
7984
}// else {
8085
//options.url = 'http://d3gscmgl75g1oq.cloudfront.net' + options.url;

0 commit comments

Comments
 (0)