2016-07-30 00:59:27 +05:30
|
|
|
import request from 'services/request';
|
2017-01-02 18:39:09 +05:30
|
|
|
import logger from 'services/logger';
|
2016-07-30 00:59:27 +05:30
|
|
|
|
|
|
|
import dispatchBsod, { inject } from './dispatchBsod';
|
2017-02-23 00:03:15 +05:30
|
|
|
import BsodMiddleware from './BsodMiddleware';
|
2016-07-30 00:59:27 +05:30
|
|
|
|
|
|
|
export default function factory(store, stopLoading) {
|
2019-11-27 14:33:32 +05:30
|
|
|
inject(store, stopLoading);
|
2016-07-30 00:59:27 +05:30
|
|
|
|
2019-11-27 14:33:32 +05:30
|
|
|
// do bsod for 500/404 errors
|
|
|
|
request.addMiddleware(new BsodMiddleware(dispatchBsod, logger));
|
2016-07-30 00:59:27 +05:30
|
|
|
}
|