Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Finding bookmarks bar by index is currently guaranteed.

  • Loading branch information...
commit 7c8b6853ce384814bb4bd18f70664ecdf7fd8883 1 parent 8819d28
Henrik Nyh authored

Showing 1 changed file with 3 additions and 1 deletion. Show diff stats Hide diff stats

  1. +3 1 background.html
4 background.html
@@ -17,7 +17,9 @@
17 17
18 18 function withBookmarksBar(callback) {
19 19 chrome.bookmarks.getTree(function(array) {
20   - var bookmarks_bar = array[0].children[0]; // Is this guaranteed?
  20 + // Finding by order is currently guaranteed:
  21 + // http://groups.google.com/group/chromium-extensions/browse_thread/thread/312986b5f27046ad/ac9b855f984a3b3d
  22 + var bookmarks_bar = array[0].children[0];
21 23 callback(bookmarks_bar);
22 24 });
23 25 }

0 comments on commit 7c8b685

Please sign in to comment.
Something went wrong with that request. Please try again.