Skip to content

Commit

Permalink
Don't check for encryption in the browser
Browse files Browse the repository at this point in the history
  • Loading branch information
GillesC committed Jun 23, 2016
1 parent 893be28 commit 5b7915e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,10 @@ exports.defineAutoTests = function() {
mode: "password",
value: "SomeOhterPassword"
}, function(result) {
// if we are in the browser
if(window.cordova && window.cordova.platformId === 'browser') || !(window.phonegap || window.cordova){
done();
}
fail("We've giving the pasword so it shouldn't work");
NativeStorage.remove("ref_to_secret_value", function() {
fail("We shouldn't got here... maybe we are in a browser!");
Expand Down

0 comments on commit 5b7915e

Please sign in to comment.