Skip to content

Commit

Permalink
PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
cowboycito committed Jan 3, 2023
1 parent 2ca2f5d commit 4610615
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 16 deletions.
8 changes: 4 additions & 4 deletions desktop/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -481,12 +481,12 @@ const mainWindow = (() => {
// After initializing and configuring the browser window, load the compiled JavaScript
.then((browserWindowRef) => {
loadURL(browserWindow).then(() => {
if (deeplinkUrl) {
browserWindow.loadURL(deeplinkUrl);
browserWindow.show();
if (!deeplinkUrl) {
return;
}

return undefined;
browserWindow.loadURL(deeplinkUrl);
browserWindow.show();
});

return browserWindowRef;
Expand Down
10 changes: 0 additions & 10 deletions src/components/DeeplinkWrapper/deeplinkRoutes.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,52 +5,42 @@ export default [
{
// /reports/*
pattern: `/${ROUTES.REPORT}($|(//*))`,
comment: 'Reports',
},
{
// /settings/*
pattern: `/${ROUTES.SETTINGS}($|(//*))`,
comment: 'Profile and app settings',
},
{
// /setpassword/*
pattern: '/setpassword($|(//*))',
comment: 'Passoword setup',
},
{
// /details/*
pattern: `/${ROUTES.DETAILS}($|(//*))`,
comment: 'Details of another users',
},
{
// /v/*
pattern: '/v($|(//*))',
comment: 'Account validation',
},
{
// /bank-account/*
pattern: `/${ROUTES.BANK_ACCOUNT}($|(//*))`,
comment: 'Bank account setup and its steps',
},
{
// /iou/*
pattern: '/iou($|(//*))',
comment: 'I Owe You reports',
},
{
// /enable-payments/*
pattern: `/${ROUTES.ENABLE_PAYMENTS}($|(//*))`,
comment: 'Payments setup',
},
{
// /statements/*
pattern: '/statements($|(//*))',
comment: 'Wallet statements',
},
{
// /concierge/*
pattern: `/${ROUTES.CONCIERGE}($|(//*))`,
comment: 'Concierge',
},
];

1 change: 0 additions & 1 deletion src/components/DeeplinkWrapper/index.website.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ class DeeplinkWrapper extends PureComponent {

if (matchedRoute) {
this.setState({deeplinkMatch: true});

this.openRouteInDesktopApp();
} else {
this.setState({deeplinkMatch: false});
Expand Down
1 change: 0 additions & 1 deletion src/languages/es.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,6 @@ export default {
updatePrompt: 'Existe una nueva versión de esta aplicación.\nActualiza ahora or reinicia la aplicación más tarde para recibir la última versión.',
},
deeplinkWrapper: {
// TODO: translate to spanish
launching: 'Cargando Expensify',
redirectedToDesktopApp: 'Te hemos redirigido a la aplicación de escritorio.',
youCanAlso: 'También puedes',
Expand Down

0 comments on commit 4610615

Please sign in to comment.