mirror of
https://gitee.com/shuto-github/cordova-plugin-network-information.git
synced 2026-04-22 00:00:02 +08:00
CB-8185 Use navigator.onLine as connection information source on browser platform
* add support for `online`/`offline` events for browser
This commit is contained in:
@@ -121,6 +121,11 @@ eventually be removed.
|
||||
- Firefox OS can't detect the type of cellular network connection.
|
||||
- `navigator.connection.type` is set to `Connection.CELL` for all cellular data.
|
||||
|
||||
### Browser Quirks
|
||||
|
||||
- Browser can't detect the type of network connection.
|
||||
`navigator.connection.type` is always set to `Connection.UNKNOWN` when online.
|
||||
|
||||
# Network-related Events
|
||||
|
||||
## offline
|
||||
|
||||
Reference in New Issue
Block a user