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:
+3
-2
@@ -166,8 +166,9 @@ xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
|
||||
<!-- browser -->
|
||||
<platform name="browser">
|
||||
<js-module src="src/browser/NetworkProxy.js" name="NetworkProxy">
|
||||
<runs />
|
||||
<js-module src="www/browser/network.js" name="browserNetwork">
|
||||
<clobbers target="navigator.connection" />
|
||||
<clobbers target="navigator.network.connection" />
|
||||
</js-module>
|
||||
</platform>
|
||||
</plugin>
|
||||
|
||||
Reference in New Issue
Block a user