Skip to content

[Feature Request]Add a function to set global options #793

@NotEvenANeko

Description

@NotEvenANeko

Sometimes I want to set a proxy or TTL when sending a notification, but it's inconvient to call webpush.sendNotification with option parameter every time. What about adding a function like webpush.setConfig ?

btw, export the WebPushLib itself to allow users to initialize multiple instances might be useful for some users.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions