* feat(Deeplinking): Implement for web. * ref(unsupported_browser): Move the mobile version to deeplinking feature * feat(deeplinking_mobile): Redesign. * fix(deeplinking): Use interface.NATIVE_APP_NAME. * feat(dial_in_summary): Add the PIN to the number link. * fix(deep_linking): Handle use case when there isn't deep linking image. * fix(deep_linking): css * fix(deep_linking): deeplink -> "deep linking" * fix(deeplinking_css): Remove position: fixed * docs(deeplinking): Add comment for the openWebApp action.
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);
|
|
});
|