function gotSettings(userSettings) {
if (userSettings.isOnToolbar) {
console.log("Browser action is pinned to toolbar.");
} else {
console.log("Browser action is not pinned to toolbar.");
}
}
let gettingUserSettings = browser.browserAction.getUserSettings();
gettingUserSettings.then(gotSettings);browserAction.getUserSettings() / notebook
browserAction.getUserSettings()
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.