Deeplink support

Summary: This diff adds the support to deeplink to the litho form.

Reviewed By: passy

Differential Revision: D17792341

fbshipit-source-id: b146993163b14df000c499236da48b7e8066f457
This commit is contained in:
Pritesh Nandgaonkar
2019-10-08 11:58:25 -07:00
committed by Facebook Github Bot
parent f924b0ae1b
commit dfc4f74ed3

View File

@@ -7,9 +7,11 @@
import {remote, ipcRenderer} from 'electron';
import {toggleAction} from '../reducers/application';
import {setStaticView} from '../reducers/connections';
import {Store} from '../reducers/index.js';
import {Logger} from '../fb-interfaces/Logger';
import {parseFlipperPorts} from '../utils/environmentVariables';
import SupportRequestFormManager from '../fb-stubs/SupportRequestFormManager';
import {
importDataToStore,
importFileToStore,
@@ -71,6 +73,8 @@ export default (store: Store, logger: Logger) => {
store.dispatch(toggleAction('downloadingImportData', false));
})
);
} else if (query === 'flipper://support-form?form=Litho') {
store.dispatch(setStaticView(SupportRequestFormManager));
}
const match = uriComponents(query);
if (match.length > 1) {