21 lines
448 B
JavaScript
Raw Normal View History

2016-07-29 22:29:27 +03:00
import React from 'react';
import ReactDOM from 'react-dom';
import { bsod } from './actions';
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) {
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) {
injectedStore = store;
onBsod = stopLoading;
2016-07-29 22:29:27 +03:00
}