diff options
-rw-r--r-- | lib/main.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/main.js b/lib/main.js index 335c393..2855427 100644 --- a/lib/main.js +++ b/lib/main.js @@ -921,7 +921,7 @@ DataStoreCtor.prototype = { } }, _ensure: function(entry, obj, val) { - if (obj.toString().indexOf("[object Storage]") >= 0) { + if (obj.toString().indexOf("[object Storage") >= 0) { obj.setItem(entry, val); } else { if (typeof obj[entry] == "undefined") |