Enable all extensions in the JS engine

This commit is contained in:
Alex Spataru 2024-11-25 02:03:08 -05:00
parent a08afe423e
commit 83f2019680

View File

@ -243,8 +243,7 @@ bool JSON::FrameParser::save(const bool silent)
bool JSON::FrameParser::loadScript(const QString &script)
{
// Ensure that engine is configured correctly
m_engine.installExtensions(QJSEngine::ConsoleExtension
| QJSEngine::GarbageCollectionExtension);
m_engine.installExtensions(QJSEngine::AllExtensions);
// Check if there are no general JS errors
QStringList errors;