/*
 * Display a notification.
 */
function notify(msg, type) {

    const opts = {
        title: type ? type.charAt(0).toUpperCase() + type.slice(1) : 'Info',
        text: msg,
        type: type || 'info',
        hide : false,
        width: '400px',
        buttons: {
            closer: true,
            sticker: false
        }
    };

    switch (type) {
        case "error":
        case "warning":
            opts.icon = 'fa fa-exclamation-circle';
            break;
        case "success":
            opts.icon = 'fa fa-thumbs-up';
            opts.delay = 2500;
            opts.hide = true;
            break;
        default:
            opts.icon = 'fa fa-info-circle';
            opts.delay = 2500;
            opts.hide = true;
            break;
    }

    return new PNotify(opts);
}
@@ -217,20 +217,19 @@
  hide : 
-fals
+tru
 e,%0A     
@@ -247,16 +247,37 @@
 400px',%0A
+        delay: 2500,%0A
         
@@ -400,16 +400,141 @@
 error%22:%0A
+        case %22danger%22:%0A            opts.icon = 'fa fa-exclamation-circle';%0A            opts.hide = false;%0A            break;%0A
         
@@ -691,69 +691,8 @@
 p';%0A
-            opts.delay = 2500;%0A            opts.hide = true;%0A
     
@@ -772,69 +772,8 @@
 e';%0A
-            opts.delay = 2500;%0A            opts.hide = true;%0A
     

Update notification delays