From 661c0134bc00226ca831df16eddec6ef029ff722 Mon Sep 17 00:00:00 2001 From: Silver Kuusik Date: Thu, 11 Oct 2018 10:21:25 +0200 Subject: [PATCH] Update utils.js --- assets/js/utils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/js/utils.js b/assets/js/utils.js index 14b34b1..482dc73 100755 --- a/assets/js/utils.js +++ b/assets/js/utils.js @@ -6,7 +6,7 @@ function getLocalStorageItem(item) { try { return localStorage.getItem(item); // Failed to access localStorage - } catch { + } catch(err) { // Return empty result return ""; } @@ -20,5 +20,5 @@ function setLocalStorageItem(item, value) { try { localStorage.setItem(item, value) // Failed to access localStorage - } catch {} + } catch(err) {} }