diff --git a/js/addBookmarks.js b/js/addBookmarks.js index bb1804f..f62d695 100644 --- a/js/addBookmarks.js +++ b/js/addBookmarks.js @@ -16,17 +16,16 @@ function populateGroupList() { var db = openEvt.target.result; var groupsStore = db.transaction("Groups", "readwrite").objectStore("Groups"); - groupsStore.getAll().onsuccess = function (getAllEvt) { - var groups = getAllEvt.target.result; - - for (let group of groups) { + groupsStore.openCursor().onsuccess = function (cursorEvt) { + var cursor = cursorEvt.target.result; + if (cursor) { + var group = cursor.value; combo.append($("