* Take into account SendOutputToBrowser

This commit is contained in:
Michael Van Canneyt 2025-03-24 10:24:49 +01:00
parent a4ffb0957d
commit 57c841e471

View File

@ -673,7 +673,8 @@ end;
procedure TWorkerThreadRunnerApplication.HandleConsoleWrite(Sender: TObject; aOutput: string);
begin
ConsoleChannel.postMessage(TWorkerConsoleCommand.Create(aOutput));
if SendOutputToBrowser then
ConsoleChannel.postMessage(TWorkerConsoleCommand.Create(aOutput));
end;
function TWorkerThreadRunnerApplication.CreateWorkerThreadSupport(aEnv : TPas2JSWasiEnvironment) : TWorkerThreadSupport;