Add back support for flipper://welcome
Summary: This was removed as part of the deeplink restructuring. Turns out this is actually useful in addition to the `flipper://` as some normalisation algos (notably VSCode's) remove the `//` otherwise. Reviewed By: nikoant Differential Revision: D32428872 fbshipit-source-id: ec89b1ab561504996da5d02521b91562245554a0
This commit is contained in:
committed by
Facebook GitHub Bot
parent
ddb4e70c2a
commit
54b7ce9308
@@ -43,8 +43,9 @@ export async function handleDeeplink(
|
||||
if (uri.protocol !== 'flipper:') {
|
||||
throw unknownError();
|
||||
}
|
||||
if (uri.href === 'flipper://') {
|
||||
// We support an empty protocol for just opening Flipper from anywhere.
|
||||
if (uri.href === 'flipper://' || uri.pathname === '//welcome') {
|
||||
// We support an empty protocol for just opening Flipper from anywhere
|
||||
// or alternatively flipper://welcome to open the welcome screen.
|
||||
return;
|
||||
}
|
||||
if (uri.href.startsWith('flipper://open-plugin')) {
|
||||
|
||||
Reference in New Issue
Block a user