Skip to content
This repository has been archived by the owner on Jan 23, 2025. It is now read-only.

Commit

Permalink
Fix news time on the homepage
Browse files Browse the repository at this point in the history
  • Loading branch information
kiwibrowser authored Oct 8, 2020
1 parent e64e65b commit b474280
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions chrome/browser/resources/local_ntp/local_ntp.html
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,8 @@ <h2>Private mode</h2>
news_time = child.childNodes[0].childNodes[0].dateTime;
else if (child.childNodes[0].childNodes[1].tagName == 'TIME')
news_time = child.childNodes[0].childNodes[1].dateTime;
if (child.childNodes[0].childNodes.length == 3 && child.childNodes[0].childNodes[2].tagName == 'TIME')
news_time = child.childNodes[0].childNodes[2].dateTime;
}
else if (child.childNodes.length >= 2 && child.childNodes[0].tagName == 'DIV')
{
Expand Down

0 comments on commit b474280

Please sign in to comment.