Skip to content

Commit

Permalink
Unify path checking
Browse files Browse the repository at this point in the history
Summary: We already check for `flipper://` above, so we can focus on the `pathname`.

Reviewed By: antonk52

Differential Revision: D58811471

fbshipit-source-id: ab7b7adafa21a9a0e7acc512c0cbf9c3204db2e2
  • Loading branch information
passy authored and facebook-github-bot committed Jun 21, 2024
1 parent da66d6e commit e19a711
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion desktop/flipper-ui/src/deeplink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export async function handleDeeplink(
// or alternatively flipper://welcome to open the welcome screen.
return;
}
if (uri.href.startsWith('flipper://open-plugin')) {
if (uri.pathname === '//open-plugin') {
return handleOpenPluginDeeplink(store, query, trackInteraction);
}
if (uri.pathname.match(/^\/*import\/*$/)) {
Expand Down

0 comments on commit e19a711

Please sign in to comment.