Re-enable flipper:// support
Summary: We used to support invoking `flipper://` to launch Flipper. This broke with the recent changes to our deeplink handling. Reviewed By: mweststrate Differential Revision: D31826699 fbshipit-source-id: 09d0d16de4779bb550da884d268ca9fd60f1a9e2
This commit is contained in:
committed by
Facebook GitHub Bot
parent
9a47f41056
commit
25a6fc1ab1
@@ -43,6 +43,10 @@ export async function handleDeeplink(
|
|||||||
if (uri.protocol !== 'flipper:') {
|
if (uri.protocol !== 'flipper:') {
|
||||||
throw unknownError();
|
throw unknownError();
|
||||||
}
|
}
|
||||||
|
if (uri.href === 'flipper://') {
|
||||||
|
// We support an empty protocol for just opening Flipper from anywhere.
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (uri.href.startsWith('flipper://open-plugin')) {
|
if (uri.href.startsWith('flipper://open-plugin')) {
|
||||||
return handleOpenPluginDeeplink(store, query, trackInteraction);
|
return handleOpenPluginDeeplink(store, query, trackInteraction);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user