default-browser
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -10,7 +10,7 @@ 'use strict'; | ||
if (process.platform !== 'darwin') { | ||
throw new Error('Only OS X and Linux are supported'); | ||
if (process.platform === 'darwin') { | ||
return defaultBrowserId().then(id => bundleName(id).then(name => ({name, id}))); | ||
} | ||
return defaultBrowserId().then(id => bundleName(id).then(name => ({name, id}))); | ||
return Promise.reject(new Error('Only macOS and Linux are supported')); | ||
}; |
{ | ||
"name": "default-browser", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Get the default browser", | ||
@@ -22,2 +22,3 @@ "license": "MIT", | ||
"keywords": [ | ||
"macos", | ||
"osx", | ||
@@ -24,0 +25,0 @@ "linux", |
# default-browser [![Build Status](https://travis-ci.org/sindresorhus/default-browser.svg?branch=master)](https://travis-ci.org/sindresorhus/default-browser) | ||
> Get the default browser (OS X and Linux) | ||
> Get the default browser (macOS and Linux) | ||
@@ -5,0 +5,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2999