Skip to content

Avoid Triggering Requests while offline #402

Description

@gilbertococchi

QuickLink should avoid triggering Network requests when the device is offline.

It should be relatively easy to fix this by adding this code in the checkConnection function.

if("onLine" in navigator && !navigator.onLine) {
  return new Error('Device is offline');
}

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions