fix localIO API calls
This commit is contained in:
parent
ab013bca0b
commit
9188aeab5a
@ -179,7 +179,8 @@ bool ScriptEnv::importBuiltinExtension(const QString &extension, QScriptValue &o
|
|||||||
} else if ("localio" == extension) {
|
} else if ("localio" == extension) {
|
||||||
m_allowedUrls |= LocalUrls;
|
m_allowedUrls |= LocalUrls;
|
||||||
registerGetUrl(obj);
|
registerGetUrl(obj);
|
||||||
obj.setProperty("", m_engine->newFunction(ScriptEnv::runCommand));
|
obj.setProperty("userDataPath", m_engine->newFunction(ScriptEnv::userDataPath));
|
||||||
|
obj.setProperty("runCommand", m_engine->newFunction(ScriptEnv::runCommand));
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user