quicklink icon indicating copy to clipboard operation
quicklink copied to clipboard

Avoid Triggering Requests while offline

Open gilbertococchi opened this issue 2 years ago • 0 comments

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

gilbertococchi avatar Sep 17 '23 16:09 gilbertococchi