Skip to content

Avoid Triggering Requests while offline #402

Open
@gilbertococchi

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');
}

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