-
Notifications
You must be signed in to change notification settings - Fork 343
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crash when startUrl option is an array in config file #1215
Comments
Thanks for reporting this. @rpl I guess we need to simulate what yargs does in this case and accept the array but validate each item in the array. Looking at |
@kumar303 yeah I agree. I took a brief look at the related code and it seems that we need at least to change the following pieces:
|
@kumar303 I've been thinking about this and looked in all the types of the currently supported parameters and I'm not sure that we can arbitrarily accept a array for all the command of type string, number or boolean, the reason is that for most of the options that we have an array doesn't make sense and/or it would trigger even more issues because of the parameter unexpectantly becoming an array, just to make some example:
And so, as an alternative approach, I think that we could on the contrary set as type 'array' only the parameters for which it makes sense to have an array of config values, because we also know that we are going to handle it correctly, e.g. I think that the following ones may fall in this category:
How that sounds to you? |
Fixed in #1221 |
Is this a feature request or a bug?
bug
What is the current behavior?
web-ext-config.js
What is the expected or desired behavior?
The browser should start and open the specified pages without errors.
Version information (for bug reports)
The text was updated successfully, but these errors were encountered: