popup/ruler_popup.js
/**
* Check settings for the tabs Map and
* checks popup controls accordingly
* @param {object} storedSettings
*/
Check settings for the tabs Map and
checks popup controls accordingly
Check settings for the tabs Map and checks popup controls accordingly
function checkStoredSettings(storedSettings) {
  if (!currentTab) {
    throw "Cannot determine tab id while retrieving settings!";
  }
  enabledTabs = storedSettings.tabs;
  if (enabledTabs && (enabledTabs instanceof Map) && enabledTabs.has(currentTab)) {
    optionsElm.state.checked = enabledTabs.get(currentTab).state;
    optionsElm.bsbState.checked = enabledTabs.get(currentTab).bsbState;
  }
}
function checkStoredSettings ( storedSettings ) { if ( ! currentTab ) { throw "Cannot determine tab id while retrieving settings!" ; } enabledTabs = storedSettings . tabs ; if ( enabledTabs && ( enabledTabs instanceof Map ) && enabledTabs . has ( currentTab ) ) { optionsElm . state . checked = enabledTabs . get ( currentTab ) . state ; optionsElm . bsbState . checked = enabledTabs . get ( currentTab ) . bsbState ; } }
Check settings for the tabs Map and
checks popup controls accordingly
Check settings for the tabs Map and checks popup controls accordingly