You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by pu...@apache.org on 2012/10/17 22:38:34 UTC
[1/9] js commit: [windows8] whitespace, remove extra tab
Updated Branches:
refs/heads/master 9eaa875af -> f4759b242
[windows8] whitespace, remove extra tab
Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/commit/f4759b24
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/tree/f4759b24
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/diff/f4759b24
Branch: refs/heads/master
Commit: f4759b242065c7c89487234d131c313b3fa6adf4
Parents: f23599c
Author: Jesse MacFadyen <pu...@gmail.com>
Authored: Tue Oct 16 18:50:12 2012 -0700
Committer: Jesse MacFadyen <pu...@gmail.com>
Committed: Tue Oct 16 18:50:12 2012 -0700
----------------------------------------------------------------------
lib/windows8/plugin/windows8/DeviceProxy.js | 46 +++++++++++-----------
1 files changed, 23 insertions(+), 23 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/f4759b24/lib/windows8/plugin/windows8/DeviceProxy.js
----------------------------------------------------------------------
diff --git a/lib/windows8/plugin/windows8/DeviceProxy.js b/lib/windows8/plugin/windows8/DeviceProxy.js
index d54edb3..627ce4c 100644
--- a/lib/windows8/plugin/windows8/DeviceProxy.js
+++ b/lib/windows8/plugin/windows8/DeviceProxy.js
@@ -25,32 +25,32 @@ var utils = require('cordova/utils');
module.exports = {
- getDeviceInfo:function(win,fail,args){
- console.log("NativeProxy::getDeviceInfo");
-
- // get the name ( hostName of the machine )
- 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
- var deviceId = localStorage.deviceId;
- if(!deviceId) {
- deviceId = utils.createUUID();
- console.log(deviceId);
- localStorage.deviceId = deviceId;
+ getDeviceInfo:function(win,fail,args){
+ console.log("NativeProxy::getDeviceInfo");
+
+ // get the name ( hostName of the machine )
+ 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;
}
-
- setTimeout(function(){
- win({platform:"windows8", version:"8", name:name, uuid:deviceId, cordova:"2.2.0"});
- },0);
+ });
+
+ // deviceId aka uuid
+ var deviceId = localStorage.deviceId;
+ if(!deviceId) {
+ deviceId = utils.createUUID();
+ console.log(deviceId);
+ localStorage.deviceId = deviceId;
}
+ setTimeout(function(){
+ win({platform:"windows8", version:"8", name:name, uuid:deviceId, cordova:"2.2.0"});
+ },0);
+ }
+
};
require("cordova/commandProxy").add("Device",module.exports);