]> _ Git - fluidbook-html5.git/commitdiff
(no commit message)
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 10 Apr 2014 12:59:05 +0000 (12:59 +0000)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 10 Apr 2014 12:59:05 +0000 (12:59 +0000)
js/main.js

index 0e1c2b71bca3385d62bbbe9a8ad5b427123ad7c0..749ec6ff2292e754af4873406d74e9e38beba04a 100644 (file)
@@ -116,12 +116,16 @@ try {
 
                var collection;
                try {
-                       collection = json_parse(window.localStorage.getItem('collection'))
+                       collection = json_parse(window.localStorage.getItem('collection'));
                } catch (err) {
-
+                       console.err('error :: ' + window.localStorage.getItem('collection'));
                }
-               if (collection.res != undefined && collection.res) {
-                       resolution = collection.res;
+               try {
+                       if (collection.res != undefined && collection.res) {
+                               resolution = collection.res;
+                       }
+               } catch (err) {
+
                }
                if (OFFLINEAPP) {
                        resolution = 150;