mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 09:24:00 +02:00
Add user agent for WebWindow
This commit is contained in:
parent
93cdb3a293
commit
7ef1964a52
1 changed files with 10 additions and 0 deletions
|
@ -34,6 +34,16 @@ void ScriptEventBridge::emitScriptEvent(const QString& data) {
|
|||
}
|
||||
|
||||
|
||||
class InterfaceWebPage : public QWebPage {
|
||||
public:
|
||||
InterfaceWebPage(QWidget* parent = nullptr) : QWebPage(parent) { }
|
||||
protected:
|
||||
virtual QString userAgentForUrl(const QUrl & url) const {
|
||||
return "HighFidelityInterface/1.0";
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
WebWindowClass::WebWindowClass(const QString& title, const QString& url, int width, int height, bool isToolWindow)
|
||||
: QObject(NULL),
|
||||
_eventBridge(new ScriptEventBridge(this)),
|
||||
|
|
Loading…
Reference in a new issue