Skip to content

Commit

Permalink
returning value in successcallback instead of key
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Helbig committed Sep 1, 2016
1 parent bb65d9a commit 8d2b3ff
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/windows/NativeStorage.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,13 @@ var NativeStorageProxy = {
var value = args[1];
var vault = new Windows.Security.Credentials.PasswordVault();
vault.add(new Windows.Security.Credentials.PasswordCredential(service, key, value));
win(key);
win(value);
} catch (e) {
fail('failed to set Item in NativeStorage - ' + e.message);
}
},
clear: function (win, fail, args) {
//todo: Clear all values in NativeStorage
try {
var service = packageId.name;
var vault = new Windows.Security.Credentials.PasswordVault();
Expand All @@ -43,7 +44,7 @@ var NativeStorageProxy = {
var value = args[1];
var vault = new Windows.Security.Credentials.PasswordVault();
vault.add(new Windows.Security.Credentials.PasswordCredential(service, key, value));
win(key);
win(value);
} catch (e) {
fail('failed to put String in NativeStorage - ' + e.message);
}
Expand Down

0 comments on commit 8d2b3ff

Please sign in to comment.