Why chrome.bookmarks.search not searching folder

别来无恙 提交于 2019-12-21 22:31:11

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/14931886/why-chrome-bookmarks-search-not-searching-folder

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!