Skip to content
Snippets Groups Projects
Commit a25f2906 authored by Michael Catanzaro's avatar Michael Catanzaro Committed by Michael Catanzaro
Browse files

overview: fix TypeError when displaying empty state

This error occurs when opening Epiphany with no saved history.

Fixes #1914

Part-of: <https://gitlab.gnome.org/GNOME/epiphany/-/merge_requests/1228>


(cherry picked from commit 8891a9b26a8c9e1b5cf7af118bfdf7b3ba09e442)
parent 996c53ff
No related branches found
No related tags found
No related merge requests found
......@@ -29,6 +29,9 @@ Ephy.Overview = class Overview
_initialize()
{
const anchors = document.getElementsByTagName('a');
if (anchors.length === 0)
return;
for (let i = 0; i < anchors.length; i++) {
const anchor = anchors[i];
if (anchor.className !== 'overview-item')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment