2016-07-30 00:59:27 +05:30
|
|
|
import React from 'react';
|
|
|
|
import ReactDOM from 'react-dom';
|
|
|
|
|
|
|
|
import { bsod } from './actions';
|
2019-12-08 00:32:00 +05:30
|
|
|
import BSoD from 'app/components/ui/bsod/BSoD';
|
2016-07-30 00:59:27 +05:30
|
|
|
|
|
|
|
let injectedStore;
|
|
|
|
let onBsod;
|
|
|
|
|
|
|
|
export default function dispatchBsod(store = injectedStore) {
|
2019-11-27 14:33:32 +05:30
|
|
|
store.dispatch(bsod());
|
|
|
|
onBsod && onBsod();
|
2016-07-30 00:59:27 +05:30
|
|
|
|
2019-12-07 16:58:52 +05:30
|
|
|
ReactDOM.render(<BSoD />, document.getElementById('app'));
|
2016-07-30 00:59:27 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
export function inject(store, stopLoading) {
|
2019-11-27 14:33:32 +05:30
|
|
|
injectedStore = store;
|
|
|
|
onBsod = stopLoading;
|
2016-07-30 00:59:27 +05:30
|
|
|
}
|