demo: fixed compile demoload

This commit is contained in:
mattias 2018-11-02 22:18:31 +00:00
parent e3c64cec62
commit 4066cecd67

View File

@ -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;