Skip to content

Improvement request: disable when there's no network connection #18

Description

@micalevisk

Pretty much as is doing here: https://github.com/sindresorhus/notifier-for-github/blob/f1facf697f07bc01a030da358c953e4df0155127/source/background.js#L120

Instead of always running the update function, I think it would be nice to check if navigator.onLine

async function update() {
let options,

just add the following on above if (!navigator.onLine) return; I guess.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions