Commit 5b667056 authored by ganjingcun's avatar ganjingcun

promise-polyfill

parent a537a74c
let publicPath = 'https://cdn01.moecube.com/accounts/';
const API_ROOT = {
development: 'http://192.168.1.9:3000',
development: 'https://api.moecube.com/accounts',
test: 'http://114.215.243.95:8082',
production: 'https://api.moecube.com/accounts'
};
......
......@@ -4,6 +4,16 @@ import createLoading from 'dva-loading';
import { browserHistory } from 'dva/router';
import ReactDOM from 'react-dom';
import Promise from 'promise-polyfill';
// To add to window
if (!window.Promise) {
console.log("Promise not found");
window.Promise = Promise;
} else {
console.log("Promise exit");
}
import './index.less';
// 1. Initialize
......@@ -40,7 +50,7 @@ app.router(require('./router'));
const App = app.start();
ReactDOM.render(
<App/>,
<App />,
document.getElementById('root'),
);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment