diff --git a/bookmarks/frontend/shortcuts.js b/bookmarks/frontend/shortcuts.js index a223fb5..22f4ae6 100644 --- a/bookmarks/frontend/shortcuts.js +++ b/bookmarks/frontend/shortcuts.js @@ -17,7 +17,7 @@ document.addEventListener("keydown", (event) => { event.preventDefault(); // Detect current bookmark list item - const items = document.querySelectorAll("ul.bookmark-list > li"); + const items = [...document.querySelectorAll("ul.bookmark-list > li")]; const path = event.composedPath(); const currentItem = path.find((item) => items.includes(item)); diff --git a/bookmarks/templates/bookmarks/bookmark_page.html b/bookmarks/templates/bookmarks/bookmark_page.html index d490540..35cfe34 100644 --- a/bookmarks/templates/bookmarks/bookmark_page.html +++ b/bookmarks/templates/bookmarks/bookmark_page.html @@ -1,7 +1,8 @@ {% extends "shared/layout.html" %} {% load static shared bookmarks %} {% block content %} - + {# Bookmark list #}