Skip to content

Commit cf1d0e7

Browse files
authored
Merge pull request #35 from shaialon/master
Change LocalStorage Emptiness identification
2 parents df84c44 + 5fccc16 commit cf1d0e7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

libs/backendless.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -656,7 +656,7 @@
656656
storage = window[localStorageName];
657657

658658
var createBndlsStorage = function() {
659-
if (!('Backendless' in storage)) {
659+
if (!(storage.getItem('Backendless'))) {
660660
storage.setItem('Backendless', store.serialize({}));
661661
}
662662
};
@@ -2083,7 +2083,7 @@
20832083
asyncHandler: responder
20842084
});
20852085
},
2086-
2086+
20872087
/** @deprecated */
20882088
addPoint: function(geopoint, async) {
20892089
return this.savePoint.apply(this, arguments);
@@ -4616,4 +4616,4 @@
46164616
}
46174617

46184618
return Backendless;
4619-
});
4619+
});

0 commit comments

Comments
 (0)