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

Commit b474280

Browse files
authored
Fix news time on the homepage
1 parent e64e65b commit b474280

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

chrome/browser/resources/local_ntp/local_ntp.html

+2
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,8 @@ <h2>Private mode</h2>
397397
news_time = child.childNodes[0].childNodes[0].dateTime;
398398
else if (child.childNodes[0].childNodes[1].tagName == 'TIME')
399399
news_time = child.childNodes[0].childNodes[1].dateTime;
400+
if (child.childNodes[0].childNodes.length == 3 && child.childNodes[0].childNodes[2].tagName == 'TIME')
401+
news_time = child.childNodes[0].childNodes[2].dateTime;
400402
}
401403
else if (child.childNodes.length >= 2 && child.childNodes[0].tagName == 'DIV')
402404
{

0 commit comments

Comments
 (0)