2016-07-29 22:29:27 +03:00
|
|
|
import React from 'react';
|
|
|
|
import ReactDOM from 'react-dom';
|
|
|
|
|
|
|
|
import { bsod } from './actions';
|
2019-12-07 21:02:00 +02:00
|
|
|
import BSoD from 'app/components/ui/bsod/BSoD';
|
2016-07-29 22:29:27 +03:00
|
|
|
|
|
|
|
let injectedStore;
|
|
|
|
let onBsod;
|
|
|
|
|
|
|
|
export default function dispatchBsod(store = injectedStore) {
|
2019-11-27 11:03:32 +02:00
|
|
|
store.dispatch(bsod());
|
|
|
|
onBsod && onBsod();
|
2016-07-29 22:29:27 +03:00
|
|
|
|
2019-12-07 13:28:52 +02:00
|
|
|
ReactDOM.render(<BSoD />, document.getElementById('app'));
|
2016-07-29 22:29:27 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
export function inject(store, stopLoading) {
|
2019-11-27 11:03:32 +02:00
|
|
|
injectedStore = store;
|
|
|
|
onBsod = stopLoading;
|
2016-07-29 22:29:27 +03:00
|
|
|
}
|