nav tabs on admin dashboard
This commit is contained in:
15
node_modules/node-notifier/lib/utils.js
generated
vendored
15
node_modules/node-notifier/lib/utils.js
generated
vendored
@@ -1,6 +1,7 @@
|
||||
var shellwords = require('shellwords');
|
||||
var cp = require('child_process');
|
||||
var semver = require('semver');
|
||||
var isWSL = require('is-wsl');
|
||||
var path = require('path');
|
||||
var url = require('url');
|
||||
var os = require('os');
|
||||
@@ -29,6 +30,7 @@ var notifySendFlags = {
|
||||
urgency: 'urgency',
|
||||
t: 'expire-time',
|
||||
time: 'expire-time',
|
||||
timeout: 'expire-time',
|
||||
e: 'expire-time',
|
||||
expire: 'expire-time',
|
||||
'expire-time': 'expire-time',
|
||||
@@ -208,6 +210,10 @@ module.exports.mapToMac = function(options) {
|
||||
delete options.wait;
|
||||
}
|
||||
|
||||
if (!options.wait && !options.timeout) {
|
||||
options.timeout = 10;
|
||||
}
|
||||
|
||||
options.json = true;
|
||||
return options;
|
||||
};
|
||||
@@ -337,9 +343,8 @@ module.exports.mapToWin8 = function(options) {
|
||||
if (options.icon) {
|
||||
if (/^file:\/+/.test(options.icon)) {
|
||||
// should parse file protocol URL to path
|
||||
options.p = url
|
||||
.parse(options.icon)
|
||||
.pathname.replace(/^\/(\w:\/)/, '$1')
|
||||
options.p = new url.URL(options.icon).pathname
|
||||
.replace(/^\/(\w:\/)/, '$1')
|
||||
.replace(/\//g, '\\');
|
||||
} else {
|
||||
options.p = options.icon;
|
||||
@@ -485,6 +490,10 @@ module.exports.isWin8 = function() {
|
||||
);
|
||||
};
|
||||
|
||||
module.exports.isWSL = function() {
|
||||
return isWSL;
|
||||
};
|
||||
|
||||
module.exports.isLessThanWin8 = function() {
|
||||
return (
|
||||
os.type() === 'Windows_NT' &&
|
||||
|
||||
Reference in New Issue
Block a user