From 4441975d490f72cd3d071027cdc79c45d1c88781 Mon Sep 17 00:00:00 2001 From: miloleoelia Date: Wed, 13 Jul 2016 11:48:48 +0200 Subject: [PATCH] Add cache full error --- jstorage.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/jstorage.js b/jstorage.js index 1ac8fcc..6f0e45b 100644 --- a/jstorage.js +++ b/jstorage.js @@ -466,7 +466,10 @@ _storage_elm.save('jStorage'); } _storage_size = _storage_service.jStorage ? String(_storage_service.jStorage).length : 0; - } catch (E7) { /* probably cache is full, nothing is saved this way*/ } + } catch (E7) { + /* probably cache is full, nothing is saved this way*/ + console.log("jStorage: Cache is full!"); + } } /** @@ -993,4 +996,4 @@ // Initialize jStorage _init(); -})(); \ No newline at end of file +})();