UADetect browserOnlineStatus
component
Description
Tell's if the client's browser is online or offline.
Possible Returns
browserOnline
browserOffline
Usage Example
#1
import { browserOnlineStatus } from 'uadetect';if (browserOnlineStatus === 'browserOnline') { // Load the webpage from server}
#2
import { browserOnlineStatus } from 'uadetect';if (browserOnlineStatus === 'browserOffline') { // Load the webpage from cache}
Table of Contents