File tree 1 file changed +10
-0
lines changed
1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -434,6 +434,10 @@ module.exports.mapToWin8 = function (options) {
434
434
delete options . sound ;
435
435
}
436
436
437
+ /*
438
+ Wait, sticky are aliases for persistent.
439
+ */
440
+
437
441
if ( options . wait === true || options . sticky === true ) {
438
442
options . persistent = true ;
439
443
delete options . wait ;
@@ -444,11 +448,17 @@ module.exports.mapToWin8 = function (options) {
444
448
-d (duration) flag for ntfytoast
445
449
must be one of two options:
446
450
-d short | long
451
+
452
+ short : 7 seconds
453
+ long : 25 seconds
447
454
*/
448
455
449
456
if ( options . timeout ) {
450
457
if ( options . timeout === 'long' || ( typeof options . timeout === 'number' && options . timeout > 7 ) ) {
451
458
options . d = 'long' ;
459
+ } else if ( typeof options . timeout === 'number' && options . timeout === 0 ) {
460
+ options . persistent = true ;
461
+ delete options . timeout ;
452
462
} else {
453
463
options . d = 'short' ;
454
464
}
You can’t perform that action at this time.
0 commit comments