mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 18:23:54 +02:00
Handle svo request in DataWebPage as import requests
This commit is contained in:
parent
aca509d5cc
commit
47e63719ee
1 changed files with 5 additions and 1 deletions
|
@ -31,8 +31,12 @@ void DataWebPage::javaScriptConsoleMessage(const QString& message, int lineNumbe
|
|||
}
|
||||
|
||||
bool DataWebPage::acceptNavigationRequest(QWebFrame* frame, const QNetworkRequest& request, QWebPage::NavigationType type) {
|
||||
|
||||
|
||||
if (!request.url().toString().startsWith(HIFI_URL_SCHEME)) {
|
||||
if (request.url().path().toLower().endsWith(SVO_EXTENSION)) {
|
||||
Application::getInstance()->importSVOFromURL(request.url());
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
} else {
|
||||
// this is a hifi URL - have the AddressManager handle it
|
||||
|
|
Loading…
Reference in a new issue