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