Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Commit

Permalink
Merge pull request #2676 from ethcore/jg-port-8080-redirect
Browse files Browse the repository at this point in the history
Redirect from :8080 to :8180
  • Loading branch information
jacogr authored Oct 17, 2016
2 parents 357e482 + 87ef2c4 commit 75bb806
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions js/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@
import 'babel-polyfill';
import 'whatwg-fetch';

// redirect when not on 127.0.0.1:8180
const host = `${window.location.hostname}:${window.location.port}`;
if (host === '127.0.0.1:8080' || host === 'localhost:8080') {
window.location = 'http://127.0.0.1:8180';
}

import es6Promise from 'es6-promise';
es6Promise.polyfill();

Expand Down

0 comments on commit 75bb806

Please sign in to comment.