HackStudio: Fix running JavaScript files

s/String::format/String::formatted/ - the command was not being
formatted properly.
This commit is contained in:
Linus Groh 2020-10-09 23:21:30 +01:00 committed by Andreas Kling
commit 2d84c0c184
Notes: sideshowbarker 2024-07-19 01:56:45 +09:00

View file

@ -601,7 +601,7 @@ void HackStudioWidget::build(TerminalWrapper& wrapper)
void HackStudioWidget::run(TerminalWrapper& wrapper)
{
if (m_project->type() == ProjectType::JavaScript && m_currently_open_file.ends_with(".js"))
wrapper.run_command(String::format("js {}", m_currently_open_file));
wrapper.run_command(String::formatted("js {}", m_currently_open_file));
else
wrapper.run_command("make run");
}