mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Set a valid default value for the --userscripts command line option (#35740)
This prevents a crash when not specifying the path and matches the help message for that option. Signed-off-by: webbeef <me@webbeef.org>
This commit is contained in:
parent
18de59dd63
commit
27970e1847
1 changed files with 1 additions and 1 deletions
|
@ -617,7 +617,7 @@ pub(crate) fn parse_command_line_arguments(args: Vec<String>) -> ArgumentParsing
|
|||
time_profiler_trace_path: opt_match.opt_str("profiler-trace-path"),
|
||||
mem_profiler_period,
|
||||
nonincremental_layout,
|
||||
userscripts: opt_match.opt_default("userscripts", ""),
|
||||
userscripts: opt_match.opt_default("userscripts", "resources/user-agent-js"),
|
||||
user_stylesheets,
|
||||
hard_fail: opt_match.opt_present("f") && !opt_match.opt_present("F"),
|
||||
webdriver_port,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue