code: function (options) {
      var snackbarContainer = document.getElementById('snack-bar');
      var snackData = { message: options.text };
  
      // BUGFIX: during app initialization, the snackbar is not always ready yet
      if (!snackbarContainer.MaterialSnackbar) {
        return;
      }
  
      var progressBar = document.getElementById('progress-bar');
      progressBar.style.display = 'none';
  
      if (options.type === 'error') {
        console.warn(options.text, options.error);
        snackData.timeout = 10000; // show error for 10 seconds
      } else {
        console.log(options.text);
        snackData.timeout = 2750;
      }
      snackbarContainer.MaterialSnackbar.showSnackbar(snackData);
    }
docs: [description]
  @param  {any} options [description]