function onFulfilled(children) {
for (child of children) {
console.log(child.id);
}
}
function onRejected(error) {
console.log(`An error: ${error}`);
}
let gettingChildren = browser.bookmarks.getChildren("unfiled_____");
gettingChildren.then(onFulfilled, onRejected);bookmarks.getChildren() / notebook
bookmarks.getChildren()
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.