background.js
/**
 * Unmutes the tab
 * @param {Tab} tab The Tab object to be unmuted (Typically, the tab running spotify once the ad finishes)
 */
Unmutes the tab
@param {Tab} tab The Tab object to be unmuted (Typically, the tab running spotify once the ad finishes)
Unmutes the tab @param { Tab } tab The Tab object to be unmuted ( Typically the tab running spotify once the ad finishes )
function soundOn(tab) {
    if (tab.mutedInfo.muted) {
        chrome.tabs.update(tab.id, {muted: false}, function(tab) {
            this.muted = false;
        });
    }
}
function soundOn ( tab ) { if ( tab . mutedInfo . muted ) { chrome . tabs . update ( tab . id , { muted : false } , function ( tab ) { this . muted = false ; } ) ; } }
Unmutes the tab
 @param {Tab} tab The Tab object to be unmuted (Typically, the tab running spotify once the ad finishes)
Unmutes the tab @param { Tab } tab The Tab object to be unmuted ( Typically the tab running spotify once the ad finishes )
// If already muted, do nothing // using the Tab API, set "muted" property to false