mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2026-05-14 14:27:52 +00:00
24 lines
526 B
JavaScript
24 lines
526 B
JavaScript
|
|
// @flow
|
||
|
|
|
||
|
|
import { MiddlewareRegistry } from '../base/redux';
|
||
|
|
|
||
|
|
import { OPEN_DESKTOP_APP } from './actionTypes';
|
||
|
|
import { openDesktopApp } from './functions';
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Implements the middleware of the deep linking feature.
|
||
|
|
*
|
||
|
|
* @param {Store} store - The redux store.
|
||
|
|
* @returns {Function}
|
||
|
|
*/
|
||
|
|
// eslint-disable-next-line no-unused-vars
|
||
|
|
MiddlewareRegistry.register(store => next => action => {
|
||
|
|
switch (action.type) {
|
||
|
|
case OPEN_DESKTOP_APP:
|
||
|
|
openDesktopApp();
|
||
|
|
break;
|
||
|
|
}
|
||
|
|
|
||
|
|
return next(action);
|
||
|
|
});
|