mirror of
https://gitlab.com/freepascal.org/fpc/pas2js.git
synced 2025-04-05 11:17:45 +02:00
demo: fixed compile demoload
This commit is contained in:
parent
e3c64cec62
commit
4066cecd67
@ -151,10 +151,12 @@ begin
|
||||
document.body.appendChild(panel);
|
||||
Panel.appendChild(PanelContent);
|
||||
PanelContent.appendChild(Button);
|
||||
DS:=TRestDataset.Create(Nil);
|
||||
|
||||
Conn:=TRestConnection.Create(nil);
|
||||
Conn.BaseURL:='countries.json';
|
||||
Conn.OnGetURL:=@DoGetURL;
|
||||
|
||||
DS:=TRestDataset.Create(Nil);
|
||||
DS.Connection:=Conn;
|
||||
DS.OnLoadFail:=@DoLoadFail;
|
||||
DS.AfterLoad:=@DoAfterLoad;
|
||||
|
Loading…
Reference in New Issue
Block a user