mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-04-14 23:36:03 +02:00
WebSocket constructor could allow more then one parameter now, only the first one is used though.
This commit is contained in:
parent
55fd847636
commit
e581a57320
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@ void WebSocketClass::initialize() {
|
|||
|
||||
QScriptValue WebSocketClass::constructor(QScriptContext* context, QScriptEngine* engine) {
|
||||
QString url;
|
||||
if (context->argumentCount() == 1) {
|
||||
if (context->argumentCount() > 0) {
|
||||
url = context->argument(0).toString();
|
||||
}
|
||||
return engine->newQObject(new WebSocketClass(engine, url));
|
||||
|
|
Loading…
Reference in a new issue