Show More
@@ -136,7 +136,7 b' function processVolumeUser(node) {' | |||||
136 |
|
136 | |||
137 | function getHiddenPosts() { |
|
137 | function getHiddenPosts() { | |
138 | var arr = Array(); |
|
138 | var arr = Array(); | |
139 | var hiddenPosts = localStorage.getItem(ITEM_HIDDEN_POSTS); |
|
139 | var hiddenPosts = localStorage && localStorage.getItem(ITEM_HIDDEN_POSTS); | |
140 | if (hiddenPosts) { |
|
140 | if (hiddenPosts) { | |
141 | arr = JSON.parse(hiddenPosts); |
|
141 | arr = JSON.parse(hiddenPosts); | |
142 | } |
|
142 | } | |
@@ -144,6 +144,7 b' function getHiddenPosts() {' | |||||
144 | } |
|
144 | } | |
145 |
|
145 | |||
146 | function processPostHiding(posts) { |
|
146 | function processPostHiding(posts) { | |
|
147 | if (!window.localStorage) return; | |||
147 | var hiddenPosts = getHiddenPosts(); |
|
148 | var hiddenPosts = getHiddenPosts(); | |
148 |
|
149 | |||
149 | $.each(posts, function(index) { |
|
150 | $.each(posts, function(index) { |
General Comments 0
You need to be logged in to leave comments.
Login now