Showing the changes to interface/src/scripting/WindowScriptingInterface.cpp (1 of 2 files). Show all
Unified · Split
| @@ -29,6 +29,7 @@ · 28 unmodified lines | ||
| 29 | 29 | #include "Menu.h" |
| 30 | 30 | #include "OffscreenUi.h" |
| 31 | 31 | #include "commerce/QmlCommerce.h" |
| 32 | +#include "NetworkingConstants.h" | |
| 32 | 33 | |
| 33 | 34 | static const QString DESKTOP_LOCATION = QStandardPaths::writableLocation(QStandardPaths::DesktopLocation); |
| 34 | 35 | static const QString LAST_BROWSE_LOCATION_SETTING = "LastBrowseLocation"; |
| @@ -411,6 +412,10 @@ QString WindowScriptingInterface::checkVersion() { · 376 unmodified lines | ||
| 411 | 412 | return QCoreApplication::applicationVersion(); |
| 412 | 413 | } |
| 413 | 414 | |
| 415 | +QString WindowScriptingInterface::getUserAgent() { | |
| 416 | + return NetworkingConstants::VIRCADIA_USER_AGENT; | |
| 417 | +} | |
| 418 | + | |
| 414 | 419 | QString WindowScriptingInterface::protocolSignature() { |
| 415 | 420 | return protocolVersionsSignatureBase64(); |
| 416 | 421 | } |