Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Finding bookmarks bar by index is currently guaranteed.

  • Loading branch information...
commit 7c8b6853ce384814bb4bd18f70664ecdf7fd8883 1 parent 8819d28
@henrik authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 background.html
View
4 background.html
@@ -17,7 +17,9 @@
function withBookmarksBar(callback) {
chrome.bookmarks.getTree(function(array) {
- var bookmarks_bar = array[0].children[0]; // Is this guaranteed?
+ // Finding by order is currently guaranteed:
+ // http://groups.google.com/group/chromium-extensions/browse_thread/thread/312986b5f27046ad/ac9b855f984a3b3d
+ var bookmarks_bar = array[0].children[0];
callback(bookmarks_bar);
});
}
Please sign in to comment.
Something went wrong with that request. Please try again.