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

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

Open
micalevisk opened this issue Sep 30, 2021 · 0 comments
Open

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

micalevisk opened this issue Sep 30, 2021 · 0 comments

Comments

@micalevisk
Copy link

micalevisk commented Sep 30, 2021

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.

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

Successfully merging a pull request may close this issue.

1 participant