src/notifier.js
function show(options) {
    if (!options.message) {
      return;
    }

    prepare_();

    let notify = null;

    const time = options.time || 8000;

    switch (options.type) {
      case 'confirm':
        notify = draw.confirm(options);
        break;

      case 'prompt':
        notify = draw.prompt(options);
        break;

      default:
        notify = draw.alert(options);

        window.setTimeout(function () {
          notify.remove();
        }, time);
    }

    wrapper_.appendChild(notify);
    notify.classList.add(bounceInClass);
  }
function show(options) {
    if (!options.message) {
      return;
    }

    prepare_();

    let notify = null;

    const time = options.time || 8000;

    switch (options.type) {
      case 'confirm':
        notify = draw.confirm(options);
        break;

      case 'prompt':
        notify = draw.prompt(options);
        break;

      default:
        notify = draw.alert(options);

        window.setTimeout(function () {
          notify.remove();
        }, time);
    }

    wrapper_.appendChild(notify);
    notify.classList.add(bounceInClass);
  }
function show ( options ) { if ( ! options . message ) { return ; } prepare_ ( ) ; let notify = null ; const time = options . time || 8000 ; switch ( options . type ) { case 'confirm' : notify = draw . confirm ( options ) ; break ; case 'prompt' : notify = draw . prompt ( options ) ; break ; default : notify = draw . alert ( options ) ; window . setTimeout ( function ( ) { notify . remove ( ) ; } , time ) ; } wrapper_ . appendChild ( notify ) ; notify . classList . add ( bounceInClass ) ; }
Show new notification

@param {NotificationOptions | ConfirmNotificationOptions  | PromptNotificationOptions} options
Show new notification