mirror of
https://github.com/anticensority/runet-censorship-bypass.git
synced 2025-07-12 09:12:20 +03:00
Don't show ads on first install, rm console
This commit is contained in:
parent
dfc2243a65
commit
7bcd56f00c
|
@ -46,7 +46,7 @@ export default function getApp(theState) {
|
||||||
setNewsStatusTo(newsArr) {
|
setNewsStatusTo(newsArr) {
|
||||||
|
|
||||||
this.setStatusTo(
|
this.setStatusTo(
|
||||||
<ol>
|
<ol style="list-style-type: initial;">
|
||||||
{newsArr.map(([title, url]) => (<li><a href={url}>{title}</a></li>))}
|
{newsArr.map(([title, url]) => (<li><a href={url}>{title}</a></li>))}
|
||||||
</ol>
|
</ol>
|
||||||
);
|
);
|
||||||
|
@ -95,7 +95,6 @@ export default function getApp(theState) {
|
||||||
|
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
console.log('RESP', comments, etag);
|
|
||||||
if (etag) {
|
if (etag) {
|
||||||
localStorage[uiComEtag] = etag;
|
localStorage[uiComEtag] = etag;
|
||||||
}
|
}
|
||||||
|
@ -114,7 +113,6 @@ export default function getApp(theState) {
|
||||||
|
|
||||||
let minDate;
|
let minDate;
|
||||||
const news = [];
|
const news = [];
|
||||||
console.log('we have', comments);
|
|
||||||
comments.forEach((comment) => {
|
comments.forEach((comment) => {
|
||||||
|
|
||||||
const curDate = comment.updated_at || comment.created_at;
|
const curDate = comment.updated_at || comment.created_at;
|
||||||
|
@ -131,7 +129,6 @@ export default function getApp(theState) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
localStorage[uiComDate] = minDate;
|
localStorage[uiComDate] = minDate;
|
||||||
console.log('New date!', minDate);
|
|
||||||
localStorage[uiLastNewsArr] = JSON.stringify(news);
|
localStorage[uiLastNewsArr] = JSON.stringify(news);
|
||||||
this.setNewsStatusTo(news);
|
this.setNewsStatusTo(news);
|
||||||
return true;
|
return true;
|
||||||
|
@ -145,7 +142,9 @@ export default function getApp(theState) {
|
||||||
|
|
||||||
componentDidMount() {
|
componentDidMount() {
|
||||||
|
|
||||||
|
if (!this.props.apis.antiCensorRu.ifFirstInstall) {
|
||||||
this.showNews();
|
this.showNews();
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -249,7 +248,6 @@ export default function getApp(theState) {
|
||||||
|
|
||||||
render(originalProps) {
|
render(originalProps) {
|
||||||
|
|
||||||
console.log('Render');
|
|
||||||
const props = Object.assign({}, originalProps, {
|
const props = Object.assign({}, originalProps, {
|
||||||
funs: {
|
funs: {
|
||||||
setStatusTo: this.setStatusTo,
|
setStatusTo: this.setStatusTo,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user