stevvik
stevvik

Reputation: 45

Why chrome.bookmarks.search not searching folder

I'm try search folder bookmarks with "chrome.bookmarks.search" but not found enything.

  chrome.bookmarks.search('My folder', function(children) {
  children.forEach(function(child) {
    console.log(child)
    $('#grid').append(child.title);
});

Why this code search only bookmarks and not folder.

Upvotes: 4

Views: 1064

Answers (1)

Sudarshan
Sudarshan

Reputation: 18564

There is a know bug\feature request for searching with folder name, check details and some discussions

Work Around.

Retrieve entire Book Marks Tree using chrome.bookmarks.getTree and filter folders with missing URL property.

Upvotes: 1

Related Questions