function updateTabState(tabState, callback) {
        var message = {
            'sender': 'popup',
            'target': 'background',
            'request': 'updateTabState',
            'data': {
                tabId: tabId,
                tabState: tabState
            }
        };

        if (typeof callback === 'function')
            chrome.runtime.sendMessage(message, callback);
        else
            chrome.runtime.sendMessage(message);
    }
/**
     * Messages the background process to update the state of this tab.
     * @param {TabState} tabState - tabState information to be saved in background's collection of tabStates
     * @param {function} callback - Callback function for Chrome's sendMessage callback
     */
Messages the background process to update the state of this tab.
@param {TabState} tabState - tabState information to be saved in background's collection of tabStates
@param {function} callback - Callback function for Chrome's sendMessage callback
Messages the background process to update the state of this tab . @param { TabState } tabState - tabState information to be saved in background ' s collection of tabStates @param { function } callback - Callback function for Chrome ' s sendMessage callback
function updateTabState(tabState, callback) {
        var message = {
            'sender': 'popup',
            'target': 'background',
            'request': 'updateTabState',
            'data': {
                tabId: tabId,
                tabState: tabState
            }
        };
        if (typeof callback === 'function')
            chrome.runtime.sendMessage(message, callback);
        else
            chrome.runtime.sendMessage(message);
    }
function updateTabState ( tabState , callback ) { var message = { 'sender' : 'popup' , 'target' : 'background' , 'request' : 'updateTabState' , 'data' : { tabId : tabId , tabState : tabState } } ; if ( typeof callback === 'function' ) chrome . runtime . sendMessage ( message , callback ) ; else chrome . runtime . sendMessage ( message ) ; }
Messages the background process to update the state of this tab.
Messages the background process to update the state of this tab .