function removeButton(button) {
    chrome.storage.local.get([skillId], function(result) {
        if (result && result[skillId] && result[skillId].buttons) {
            result[skillId].buttons[locale] = result[skillId].buttons[locale].filter((text) => text !== button);

            chrome.storage.local.set({[skillId]: result[skillId]}, function() {
                $('.request-buttons button[value="'+button+'"]').parent().remove();
                localeButtons = result[skillId].buttons[locale];
            });
        }
    });
}
/**
 * Removes button from storage and container
 * @param button
 */
Removes button from storage and container
@param button
Removes button from storage and container @param button
function removeButton(button) {
    chrome.storage.local.get([skillId], function(result) {
        if (result && result[skillId] && result[skillId].buttons) {
            result[skillId].buttons[locale] = result[skillId].buttons[locale].filter((text) => text !== button);
            chrome.storage.local.set({[skillId]: result[skillId]}, function() {
                $('.request-buttons button[value="'+button+'"]').parent().remove();
                localeButtons = result[skillId].buttons[locale];
            });
        }
    });
}
function removeButton ( button ) { chrome . storage . local . get ( [ skillId ] , function ( result ) { if ( result && result [ skillId ] && result [ skillId ] . buttons ) { result [ skillId ] . buttons [ locale ] = result [ skillId ] . buttons [ locale ] . filter ( ( text ) => text !== button ) ; chrome . storage . local . set ( { [ skillId ] : result [ skillId ] } , function ( ) { $ ( '.request-buttons button[value="' + button + '"]' ) . parent ( ) . remove ( ) ; localeButtons = result [ skillId ] . buttons [ locale ] ; } ) ; } } ) ; }
Removes button from storage and container
 @param button
Removes button from storage and container @param button