mirror of
https://github.com/anticensority/runet-censorship-bypass.git
synced 2024-11-24 02:13:43 +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 = (() => {
|
const ifNews = (() => {
|
||||||
|
|
||||||
if (!(comments && comments.length)) {
|
if (!(comments && comments.length)) {
|
||||||
const news = JSON.parse(localStorage[uiLastNewsArr]);
|
const json = localStorage[uiLastNewsArr];
|
||||||
|
const news = json && JSON.parse(json);
|
||||||
if (news) {
|
if (news) {
|
||||||
this.setNewsStatusTo(news);
|
this.setNewsStatusTo(news);
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user