Showing the changes to libraries/script-engine/src/ScriptEngine.cpp (1 of 5 files). Show all
Unified · Split
| @@ -30,6 +30,7 @@ · 29 unmodified lines | |||
| 30 | #include <udt/PacketHeaders.h> | 30 | #include <udt/PacketHeaders.h> |
| 31 | #include <UUID.h> | 31 | #include <UUID.h> |
| 32 | 32 | ||
| 33 | #include <QmlWebWindowClass.h> | ||
| 33 | #include <controllers/ScriptingInterface.h> | 34 | #include <controllers/ScriptingInterface.h> |
| 34 | #include <AnimationObject.h> | 35 | #include <AnimationObject.h> |
| 35 | 36 | ||
| @@ -350,6 +351,8 @@ void ScriptEngine::init() { · 314 unmodified lines | |||
| 350 | qScriptRegisterSequenceMetaType<QVector<glm::quat> >(this); | 351 | qScriptRegisterSequenceMetaType<QVector<glm::quat> >(this); |
| 351 | qScriptRegisterSequenceMetaType<QVector<QString> >(this); | 352 | qScriptRegisterSequenceMetaType<QVector<QString> >(this); |
| 352 | 353 | ||
| 354 | |||
| 355 | registerFunction("OverlayWebWindow", QmlWebWindowClass::constructor); | ||
| 353 | QScriptValue xmlHttpRequestConstructorValue = newFunction(XMLHttpRequestClass::constructor); | 356 | QScriptValue xmlHttpRequestConstructorValue = newFunction(XMLHttpRequestClass::constructor); |
| 354 | globalObject().setProperty("XMLHttpRequest", xmlHttpRequestConstructorValue); | 357 | globalObject().setProperty("XMLHttpRequest", xmlHttpRequestConstructorValue); |
| 355 | 358 | ||