Updated Branches: refs/heads/master be7fa3204 -> 0f10e3a20
[Win8][CB-3540] remove deprecated device.name Project: http://git-wip-us.apache.org/repos/asf/cordova-js/repo Commit: http://git-wip-us.apache.org/repos/asf/cordova-js/commit/0f10e3a2 Tree: http://git-wip-us.apache.org/repos/asf/cordova-js/tree/0f10e3a2 Diff: http://git-wip-us.apache.org/repos/asf/cordova-js/diff/0f10e3a2 Branch: refs/heads/master Commit: 0f10e3a209285314ac52c9c77238bc28b4503253 Parents: be7fa32 Author: Jesse MacFadyen <[email protected]> Authored: Tue Jun 18 17:22:50 2013 -0700 Committer: Jesse MacFadyen <[email protected]> Committed: Tue Jun 18 17:22:50 2013 -0700 ---------------------------------------------------------------------- lib/windows8/plugin/windows8/DeviceProxy.js | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-js/blob/0f10e3a2/lib/windows8/plugin/windows8/DeviceProxy.js ---------------------------------------------------------------------- diff --git a/lib/windows8/plugin/windows8/DeviceProxy.js b/lib/windows8/plugin/windows8/DeviceProxy.js index cf442e3..7379f48 100644 --- a/lib/windows8/plugin/windows8/DeviceProxy.js +++ b/lib/windows8/plugin/windows8/DeviceProxy.js @@ -27,16 +27,6 @@ var FileError = require('cordova/plugin/FileError'); module.exports = { getDeviceInfo:function(win,fail,args) { - //console.log("NativeProxy::getDeviceInfo"); - var hostNames = Windows.Networking.Connectivity.NetworkInformation.getHostNames(); - - var name = "unknown"; - hostNames.some(function (nm) { - if (nm.displayName.indexOf(".local") > -1) { - name = nm.displayName.split(".local")[0]; - return true; - } - }); // deviceId aka uuid, stored in Windows.Storage.ApplicationData.current.localSettings.values.deviceId var deviceId; @@ -50,7 +40,7 @@ module.exports = { } setTimeout(function () { - win({ platform: "windows8", version: "8", name: name, uuid: deviceId, cordova: CORDOVA_JS_BUILD_LABEL }); + win({ platform: "windows8", version: "8", uuid: deviceId, cordova: CORDOVA_JS_BUILD_LABEL }); }, 0); }
