We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 73596c9 commit e38d667Copy full SHA for e38d667
1 file changed
lib/utils.js
@@ -165,13 +165,23 @@ var utils = {
165
}
166
167
},
168
+
169
+ // https://browsersync.io/docs/options
170
+ //https://www.npmjs.com/package/opn
171
+ //
172
/**
173
* Wrapper for open module - for easier stubbin'
174
* @param url
- * @param name
175
+ * @param browser
176
*/
- open: function (url, name) {
- require("opn")(url, {app: name || null});
177
+ open: function (url, browser) {
178
+ var options = null;
179
+ if(_.isString(browser)) {
180
+ options = {app: browser};
181
+ } else if(Immutable.Map.isMap(browser)) {
182
+ options = {app: browser.toJS().app};
183
+ }
184
+ require("opn")(url, options);
185
186
187
* @param {Boolean} kill
0 commit comments