options/options.js
/**
  * Store options to the browser storage.
  */
Store options to the browser storage.
Store options to the browser storage .
function saveOptions() {
    browser.storage.sync.set(getValues());
    const gettingStoredSettings = browser.storage.local.get();
    gettingStoredSettings.then(function(settings) {
      browser.tabs.query({})
        .then(function(tabs){
          tabs.forEach(function(tab){
            if (settings.tabs && settings.tabs.has(tab.id)) {
              browser.tabs.sendMessage(tab.id, {
                command: "updateStyles"
              });
            }
          });
        });
    });
  }
function saveOptions ( ) { browser . storage . sync . set ( getValues ( ) ) ; const gettingStoredSettings = browser . storage . local . get ( ) ; gettingStoredSettings . then ( function ( settings ) { browser . tabs . query ( { } ) . then ( function ( tabs ) { tabs . forEach ( function ( tab ) { if ( settings . tabs && settings . tabs . has ( tab . id ) ) { browser . tabs . sendMessage ( tab . id , { command : "updateStyles" } ) ; } } ) ; } ) ; } ) ; }
Store options to the browser storage.
Store options to the browser storage .