mirror of
https://github.com/elyby/accounts-frontend.git
synced 2024-11-07 00:29:19 +05:30
13 lines
376 B
JavaScript
13 lines
376 B
JavaScript
import request from 'app/services/request';
|
|
import logger from 'app/services/logger';
|
|
|
|
import dispatchBsod, { inject } from './dispatchBsod';
|
|
import BsodMiddleware from './BsodMiddleware';
|
|
|
|
export default function factory(store, stopLoading) {
|
|
inject(store, stopLoading);
|
|
|
|
// do bsod for 500/404 errors
|
|
request.addMiddleware(new BsodMiddleware(dispatchBsod, logger));
|
|
}
|