From 63fdb49f124ffdff2f232aa825b57ab864e3508a Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Thu, 10 Apr 2014 12:59:05 +0000 Subject: [PATCH] --- js/main.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/js/main.js b/js/main.js index 0e1c2b71..749ec6ff 100644 --- a/js/main.js +++ b/js/main.js @@ -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; -- 2.39.5