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?