From 42c0982a48f128077ac8a8c6ddb362b6edfa31dc Mon Sep 17 00:00:00 2001 From: Neil Brommer Date: Tue, 2 Jan 2018 20:27:47 -0800 Subject: [PATCH] Make populateGroupList compatible with IE/Edge --- js/addBookmarks.js | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) 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($("