mirror of
https://gitee.com/shuto/cordova-plugin-network-information.git
synced 2025-01-31 18:47:21 +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 -->
|
<!-- windows8 -->
|
||||||
<platform name="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="" />
|
<merges target="" />
|
||||||
</js-module>
|
</js-module>
|
||||||
</platform>
|
</platform>
|
||||||
|
@ -47,6 +47,7 @@ module.exports = {
|
|||||||
connectionType = Connection.NONE;
|
connectionType = Connection.NONE;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
// https://msdn.microsoft.com/en-us/library/windows/apps/windows.networking.connectivity.networkadapter.ianainterfacetype
|
||||||
switch (interfaceType) {
|
switch (interfaceType) {
|
||||||
case 71:
|
case 71:
|
||||||
connectionType = Connection.WIFI;
|
connectionType = Connection.WIFI;
|
Loading…
Reference in New Issue
Block a user