mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 05:37:34 +00:00
Ladybird: Don't rewrite file:// URLs to HTTP
This commit is contained in:
parent
c216e714c7
commit
1b682e4b2c
1 changed files with 1 additions and 1 deletions
|
@ -75,7 +75,7 @@ Tab::Tab(QMainWindow* window)
|
||||||
|
|
||||||
void Tab::navigate(QString url)
|
void Tab::navigate(QString url)
|
||||||
{
|
{
|
||||||
if (!url.startsWith("http://", Qt::CaseInsensitive) && !url.startsWith("https://", Qt::CaseInsensitive))
|
if (!url.startsWith("http://", Qt::CaseInsensitive) && !url.startsWith("https://", Qt::CaseInsensitive) && !url.startsWith("file://", Qt::CaseInsensitive))
|
||||||
url = "http://" + url;
|
url = "http://" + url;
|
||||||
view().load(url.toUtf8().data());
|
view().load(url.toUtf8().data());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue