Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Incorrect pushSubscription.getKeys method in sample code #81

Open
j1mr10rd4n opened this issue Nov 17, 2018 · 0 comments
Open

Incorrect pushSubscription.getKeys method in sample code #81

j1mr10rd4n opened this issue Nov 17, 2018 · 0 comments

Comments

@j1mr10rd4n
Copy link

The sample code in the Send a subscription to your server section contains the following snippet:

const subscriptionObject = {
  endpoint: pushSubscription.endpoint,
  keys: {
    p256dh: pushSubscription.getKeys('p256dh'),
    auth: pushSubscription.getKeys('auth')
  }
};

However, there is no getKeys method on PushSubscription. The correct method call is getKey(name)

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

No branches or pull requests

1 participant