x-default-browser
Advanced tools
Comparing version 0.3.1 to 0.4.0
13
index.js
var detect; | ||
if (process.platform == 'win32') { | ||
detect = require('./lib/detect-windows'); | ||
} else if (process.platform == 'darwin') { | ||
var os = require('os'); | ||
if (os.platform() == 'win32') { | ||
if (os.release().indexOf('10.') === 0) | ||
detect = require('./lib/detect-windows10'); | ||
else | ||
detect = require('./lib/detect-windows'); | ||
} else if (os.platform() == 'darwin') { | ||
detect = require('./lib/detect-mac'); | ||
} else if (process.platform == 'linux' || process.platform == 'freebsd') { | ||
} else if (os.platform() == 'linux' || os.platform() == 'freebsd') { | ||
detect = require('./lib/detect-linux'); | ||
@@ -8,0 +13,0 @@ } else { |
module.exports = function (out) { | ||
return ( | ||
out.isEdge ? "edge" : | ||
out.isIE ? "ie" : | ||
@@ -4,0 +5,0 @@ out.isFirefox ? "firefox" : |
{ | ||
"name": "x-default-browser", | ||
"version": "0.3.1", | ||
"version": "0.4.0", | ||
"description": "Detect default web browser of the current user, cross-platform (Win/Lin/Mac)", | ||
@@ -5,0 +5,0 @@ "author": "Jakub Gieryluk <jakub.g.opensource@gmail.com>", |
Sorry, the diff of this file is not supported yet
24320
18
481
4