Skip to content

Commit b4d8e50

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

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
@@ -48,7 +48,7 @@ SecureStorage.prototype.isParanoia = function (successCallback, errorCallback) {
4848
* @param {*} errorCallback
4949
*/
5050
SecureStorage.prototype.init = function (successCallback, errorCallback) {
51-
exec(() => {
51+
exec(function(){
5252
if (this.isParanoia && cordova.platformId === 'android') {
5353
this.setupParanoiaPassword(() => {
5454
this.isInitiated = true
@@ -58,7 +58,7 @@ SecureStorage.prototype.init = function (successCallback, errorCallback) {
5858
this.isInitiated = true
5959
successCallback()
6060
}
61-
}, errorCallback, "SecureStorage", "initialize", [this.alias, this.isParanoia]);
61+
}.bind(this), errorCallback, "SecureStorage", "initialize", [this.alias, this.isParanoia]);
6262
}
6363

6464
/**

0 commit comments

Comments
 (0)