mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:17:44 +00:00
Browser: Use URL::create_with_file_protocol() in one place
This commit is contained in:
parent
79eee65372
commit
afb9ee2af8
1 changed files with 1 additions and 3 deletions
|
@ -326,9 +326,7 @@ int main(int argc, char** argv)
|
|||
if (app.args()[0].starts_with("file://")) {
|
||||
url_to_load = URL(app.args()[0]);
|
||||
} else {
|
||||
url_to_load = URL();
|
||||
url_to_load.set_protocol("file");
|
||||
url_to_load.set_path(app.args()[0]);
|
||||
url_to_load = URL::create_with_file_protocol(app.args()[0]);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue