ing
This commit is contained in:
@@ -52,10 +52,15 @@ import appConfig, { Config, ReduxState } from './config';
|
||||
|
||||
import App from './views/App';
|
||||
|
||||
injectTapEventPlugin();
|
||||
declare global {
|
||||
interface Window {
|
||||
devToolsExtension: () => any;
|
||||
}
|
||||
const process: any;
|
||||
const module: any;
|
||||
}
|
||||
|
||||
// const isProduction:boolean = process.env.NODE_ENV === 'production' ? true : false;
|
||||
// const useReduxDevTools = window.devToolsExtension && !isProduction ? true : false;
|
||||
injectTapEventPlugin();
|
||||
|
||||
class Application {
|
||||
private static isProduction:boolean = process.env.NODE_ENV === 'production' ? true : false;
|
||||
@@ -112,13 +117,13 @@ class Application {
|
||||
private initRpcClient(): Promise<WebSocketRPC> {
|
||||
const rpcClient = new Promise<WebSocketRPC>((resolve, reject) => {
|
||||
let client = new WebSocketRPC(this.config.rpc.url);
|
||||
client.initialize()
|
||||
.then(() => {
|
||||
resolve(client);
|
||||
})
|
||||
.catch((err: any) => {
|
||||
reject(err);
|
||||
});
|
||||
// client.initialize()
|
||||
// .then(() => {
|
||||
// resolve(client);
|
||||
// })
|
||||
// .catch((err: any) => {
|
||||
// reject(err);
|
||||
// });
|
||||
resolve(client);
|
||||
});
|
||||
|
||||
@@ -171,7 +176,7 @@ class Application {
|
||||
alignItems: 'center',
|
||||
justifyContent: 'center',
|
||||
}}>
|
||||
<h1>Loading...</h1>
|
||||
<h1>Loading......</h1>
|
||||
</div>,
|
||||
this.container,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user