You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

middleware.ts 504B

1234567891011121314151617181920
  1. import MiddlewareRegistry from '../base/redux/MiddlewareRegistry';
  2. import { OPEN_DESKTOP_APP } from './actionTypes';
  3. import { openDesktopApp } from './functions';
  4. /**
  5. * Implements the middleware of the deep linking feature.
  6. *
  7. * @param {Store} store - The redux store.
  8. * @returns {Function}
  9. */
  10. MiddlewareRegistry.register(store => next => action => {
  11. switch (action.type) {
  12. case OPEN_DESKTOP_APP:
  13. openDesktopApp(store.getState());
  14. break;
  15. }
  16. return next(action);
  17. });