Showing
2 changed files
with
4 additions
and
4 deletions
@@ -169,7 +169,7 @@ $search.on('touchend', function() { | @@ -169,7 +169,7 @@ $search.on('touchend', function() { | ||
169 | history, | 169 | history, |
170 | historys, i, num = 1; | 170 | historys, i, num = 1; |
171 | 171 | ||
172 | - try{ | 172 | + try { |
173 | if (localStorage) { | 173 | if (localStorage) { |
174 | historys = localStorage.getItem(historyval); | 174 | historys = localStorage.getItem(historyval); |
175 | 175 | ||
@@ -202,7 +202,7 @@ $search.on('touchend', function() { | @@ -202,7 +202,7 @@ $search.on('touchend', function() { | ||
202 | $clearHistory.hide(); | 202 | $clearHistory.hide(); |
203 | } | 203 | } |
204 | } | 204 | } |
205 | - } catch(e) { | 205 | + } catch (e) { |
206 | console.log(e); | 206 | console.log(e); |
207 | $historySearch.hide(); | 207 | $historySearch.hide(); |
208 | $clearHistory.hide(); | 208 | $clearHistory.hide(); |
@@ -20,7 +20,7 @@ function getHistoryval() { | @@ -20,7 +20,7 @@ function getHistoryval() { | ||
20 | function setHistoryValFun(query) { | 20 | function setHistoryValFun(query) { |
21 | var historys; | 21 | var historys; |
22 | 22 | ||
23 | - try{ | 23 | + try { |
24 | if (localStorage) { | 24 | if (localStorage) { |
25 | historys = localStorage.getItem(historyval); | 25 | historys = localStorage.getItem(historyval); |
26 | 26 | ||
@@ -34,7 +34,7 @@ function setHistoryValFun(query) { | @@ -34,7 +34,7 @@ function setHistoryValFun(query) { | ||
34 | localStorage.setItem(historyval, historys); | 34 | localStorage.setItem(historyval, historys); |
35 | } | 35 | } |
36 | } catch (e) { | 36 | } catch (e) { |
37 | - console.log(e) | 37 | + console.log(e); |
38 | } | 38 | } |
39 | } | 39 | } |
40 | 40 |
-
Please register or login to post a comment