Skip to content

Commit a5ee099

Browse files
fix(es5): make plugin es5 compatible
1 parent b4d8e50 commit a5ee099

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

www/securestorage.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@ SecureStorage.prototype.isParanoia = function (successCallback, errorCallback) {
5050
SecureStorage.prototype.init = function (successCallback, errorCallback) {
5151
exec(function(){
5252
if (this.isParanoia && cordova.platformId === 'android') {
53-
this.setupParanoiaPassword(() => {
53+
this.setupParanoiaPassword(function() {
5454
this.isInitiated = true
5555
successCallback()
56-
}, errorCallback)
56+
}.bind(this), errorCallback)
5757
} else {
5858
this.isInitiated = true
5959
successCallback()

0 commit comments

Comments
 (0)