mirror of
https://gitee.com/shuto/cordova-plugin-network-information.git
synced 2025-01-31 10:35:43 +08:00
CB-8384 Add Windows section to Network Information plugin
This commit is contained in:
parent
928efea0d4
commit
fb608698e5
@ -145,7 +145,14 @@ xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
|
||||
<!-- windows8 -->
|
||||
<platform name="windows8">
|
||||
<js-module src="src/windows8/NetworkInfoProxy.js" name="NetworkInfoProxy">
|
||||
<js-module src="src/windows/NetworkInfoProxy.js" name="NetworkInfoProxy">
|
||||
<merges target="" />
|
||||
</js-module>
|
||||
</platform>
|
||||
|
||||
<!-- windows -->
|
||||
<platform name="windows">
|
||||
<js-module src="src/windows/NetworkInfoProxy.js" name="NetworkInfoProxy">
|
||||
<merges target="" />
|
||||
</js-module>
|
||||
</platform>
|
||||
|
@ -47,6 +47,7 @@ module.exports = {
|
||||
connectionType = Connection.NONE;
|
||||
}
|
||||
else {
|
||||
// https://msdn.microsoft.com/en-us/library/windows/apps/windows.networking.connectivity.networkadapter.ianainterfacetype
|
||||
switch (interfaceType) {
|
||||
case 71:
|
||||
connectionType = Connection.WIFI;
|
Loading…
Reference in New Issue
Block a user