mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 10:58:12 +00:00
HackStudio: Fix running JavaScript files
s/String::format/String::formatted/ - the command was not being formatted properly.
This commit is contained in:
parent
e7c53bee16
commit
2d84c0c184
1 changed files with 1 additions and 1 deletions
|
@ -601,7 +601,7 @@ void HackStudioWidget::build(TerminalWrapper& wrapper)
|
||||||
void HackStudioWidget::run(TerminalWrapper& wrapper)
|
void HackStudioWidget::run(TerminalWrapper& wrapper)
|
||||||
{
|
{
|
||||||
if (m_project->type() == ProjectType::JavaScript && m_currently_open_file.ends_with(".js"))
|
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
|
else
|
||||||
wrapper.run_command("make run");
|
wrapper.run_command("make run");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue