mirror of
https://github.com/anticensority/runet-censorship-bypass.git
synced 2024-11-27 20:03:45 +03:00
Fix bug trying to parse undefined news
This commit is contained in:
parent
b93958a8aa
commit
189687595e
|
@ -108,7 +108,8 @@ export default function getApp(theState) {
|
|||
const ifNews = (() => {
|
||||
|
||||
if (!(comments && comments.length)) {
|
||||
const news = JSON.parse(localStorage[uiLastNewsArr]);
|
||||
const json = localStorage[uiLastNewsArr];
|
||||
const news = json && JSON.parse(json);
|
||||
if (news) {
|
||||
this.setNewsStatusTo(news);
|
||||
return true;
|
||||
|
|
Loading…
Reference in New Issue
Block a user