better-opn
Advanced tools
Comparing version 3.0.1 to 3.0.2
@@ -94,7 +94,2 @@ "use strict"; | ||
browser = undefined; | ||
} // If there are arguments, they must be passed as array with the browser | ||
if (typeof browser === 'string' && args.length > 0) { | ||
browser = [browser].concat(args); | ||
} // Fallback to opn | ||
@@ -105,4 +100,6 @@ // (It will always open new tab) | ||
var options = _objectSpread({ | ||
app: browser, | ||
url: true, | ||
app: { | ||
name: browser, | ||
arguments: args | ||
}, | ||
wait: false | ||
@@ -109,0 +106,0 @@ }, opts); |
{ | ||
"name": "better-opn", | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"description": "A better opn. Reuse the same tab on Chrome for 👨💻.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -14,3 +14,3 @@ # better-opn | ||
If you wish to overwrite the default browser, override `BROWSER` environment variable to your desire browser name (name is platform dependent). | ||
If you wish to overwrite the default browser, override `BROWSER` environment variable to your desired browser name (name is platform dependent). | ||
@@ -17,0 +17,0 @@ ```js |
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
286795
106