We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0d02978 commit f1cd3d6Copy full SHA for f1cd3d6
lib/utils.js
@@ -399,6 +399,7 @@ module.exports.mapToWin8 = function (options) {
399
} else {
400
options.p = options.icon;
401
}
402
+
403
delete options.icon;
404
405
@@ -438,6 +439,20 @@ module.exports.mapToWin8 = function (options) {
438
439
delete options.wait;
440
441
442
+ /*
443
+ -d (duration) flag for ntfytoast
444
+ must be one of two options:
445
+ -d short | long
446
+ */
447
448
+ if (options.timeout) {
449
+ if (options.timeout === 'long' || (typeof options.timeout === 'number' && options.timeout > 7)) {
450
+ options.d = 'long';
451
+ } else {
452
+ options.d = 'short';
453
+ }
454
455
456
if (options.s === false) {
457
options.silent = true;
458
delete options.s;
0 commit comments