src/utils/util.js
/**
     * Display snackbar
     *
     * @param message - either a string, or data object
     */
Display snackbar
@param message - either a string, or data object
Display snackbar @param message - either a string or data object
static snackbar(message) {
        let data = {};
        if(typeof message == "string")
            data = { message: message };
        else
            data = message;
        const snackbar = document.querySelector('.mdl-js-snackbar');
        if (typeof snackbar.attributes['hidden'] != "undefined") 
            snackbar.attributes.removeNamedItem("hidden");
        snackbar.MaterialSnackbar.showSnackbar(data);
        return snackbar;
    }
static snackbar ( message ) { let data = { } ; if ( typeof message == "string" ) data = { message : message } ; else data = message ; const snackbar = document . querySelector ( '.mdl-js-snackbar' ) ; if ( typeof snackbar . attributes [ 'hidden' ] != "undefined" ) snackbar . attributes . removeNamedItem ( "hidden" ) ; snackbar . MaterialSnackbar . showSnackbar ( data ) ; return snackbar ; }
Display snackbar
 @param message - either a string, or data object
Display snackbar @param message - either a string or data object
// ad block work around