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