dist/storage-helper.js
function log(text) {
  var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'success';
  var debug$$1 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;

  if (!debug$$1) {
    return;
  }

  var success = 'padding: 2px; background: #219621; color: #ffffff';
  var warning = 'padding: 2px; background: #f1e05a; color: #333333';
  var error = 'padding: 2px; background: #b9090b; color: #ffffff';
  var types = { error: error, success: success, warning: warning };

  console.log('%c [Storage Helper] ' + text + ' ', types[type]);
}
function log(text) {
  var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'success';
  var debug$$1 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;

  if (!debug$$1) {
    return;
  }

  var success = 'padding: 2px; background: #219621; color: #ffffff';
  var warning = 'padding: 2px; background: #f1e05a; color: #333333';
  var error = 'padding: 2px; background: #b9090b; color: #ffffff';
  var types = { error: error, success: success, warning: warning };

  console.log('%c [Storage Helper] ' + text + ' ', types[type]);
}
function log ( text ) { var type = arguments . length > 1 && arguments [ 1 ] !== undefined ? arguments [ 1 ] : 'success' ; var debug$$1 = arguments . length > 2 && arguments [ 2 ] !== undefined ? arguments [ 2 ] : false ; if ( ! debug$$1 ) { return ; } var success = 'padding: 2px; background: #219621; color: #ffffff' ; var warning = 'padding: 2px; background: #f1e05a; color: #333333' ; var error = 'padding: 2px; background: #b9090b; color: #ffffff' ; var types = { error : error , success : success , warning : warning } ; console . log ( '%c [Storage Helper] ' + text + ' ' , types [ type ] ) ; }
Logger for different type of messages.
@param  {String} text
@param  {String} [type='success']
Logger for different type of messages .