fix localIO API calls

This commit is contained in:
Aaron Seigo 2011-07-07 16:29:42 +02:00
parent ab013bca0b
commit 9188aeab5a

View File

@ -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;
} }