What is the recommended way to test for existence of a
BookmarkTreeNode that doesn't have a URL (i.e. a folder)?

chrome.bookmarks.search does not work for non-URL bookmarks (always
returns false)

The following code is fugly, and doesn't work:

try {
        chrome.bookmarks.get(folderID, function(){console.log('found')});
} catch(e) {
        console.log('not found');
}


So, what is the recommended way to test for existence of a
BookmarkTreeNode that doesn't have a URL (i.e. a folder)?

- rich

--

You received this message because you are subscribed to the Google Groups 
"Chromium-extensions" group.
To post to this group, send email to chromium-extensi...@googlegroups.com.
To unsubscribe from this group, send email to 
chromium-extensions+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/chromium-extensions?hl=en.


Reply via email to