Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

notificationClickHandlerMatch origin only focuses and does not navigate to new URL #108

Closed
jasonpang opened this issue Aug 12, 2016 · 2 comments

Comments

@jasonpang
Copy link
Contributor

Work on: https://bugs.chromium.org/p/chromium/issues/detail?id=632462#c8

@jasonpang
Copy link
Contributor Author

Should be:

  if ((notificationClickHandlerMatch === 'exact' && clientUrl === launchUrl) ||
      (notificationClickHandlerMatch === 'origin' && clientOrigin === launchOrigin)) {
      if (client.url === launchUrl) {
          client.focus();
      } else {
          client.navigate(launchUrl);
      }
  }

@jasonpang jasonpang changed the title Web app URL opening to same URL notificationClickHandlerMatch origin only focuses and does not navigate to new URL Mar 21, 2017
@jasonpang
Copy link
Contributor Author

Fixed by: 956f6f0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant