PWA and local files

Hi,

I try to open a local text file from PWA App, I do this like below (according to blog):

procedure TfrmLoadKey.wbLoadFromFileClick(Sender: TObject);
var ATextFile:TTextFile;
begin
ATextFile := TTextFile.Create;
ATextFile.OpenFile(procedure(AText: string)
begin
wmKeyContent.Lines.Text := AText;
end);
end;

but in console I get an error:
Uncaught (in promise) TypeError: afile.DoOpenFile is not a function
at asyncCall

What do I wrong?

I suspect you compile in release mode (i.e. with optimization on).
We have seen an issue with this. Turn optimization off for now.
We will address this for the next release.