1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-25 16:05:06 +00:00

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
parent e7c53bee16
commit 2d84c0c184

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");
}