Skip to content

Commit

Permalink
return the uuid we worked so hard to get
Browse files Browse the repository at this point in the history
  • Loading branch information
purplecabbage committed Oct 31, 2012
1 parent 95efdcd commit 6805a3a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/windows8/plugin/windows8/DeviceProxy.js
Expand Up @@ -51,14 +51,14 @@ module.exports = {
if (fileContent) {
deviceId = fileContent;
setTimeout(function () {
win({ platform: "windows8", version: "8", name: name, uuid: "TODO", cordova: "2.2.0" });
win({ platform: "windows8", version: "8", name: name, uuid: deviceId, cordova: "2.2.0" });
}, 0)
} else {
deviceId = utils.createUUID();
Windows.Storage.FileIO.writeTextAsync(storageFile, deviceId, Windows.Storage.Streams.UnicodeEncoding.utf8).done(
function () {
setTimeout(function () {
win({ platform: "windows8", version: "8", name: name, uuid: "TODO", cordova: "2.2.0" });
win({ platform: "windows8", version: "8", name: name, uuid: deviceId, cordova: "2.2.0" });
}, 0)
}, function () {
fail(FileError.INVALID_MODIFICATION_ERR);
Expand Down

0 comments on commit 6805a3a

Please sign in to comment.