mirror of
https://gitlab.com/freepascal.org/fpc/pas2js.git
synced 2025-04-05 11:17:45 +02:00
* Add content to download anchor
This commit is contained in:
parent
8802cf610b
commit
dc418b3fea
@ -749,6 +749,7 @@ Function CreateDownLoadFromFile(const aFileName,aMimeType : string; aParent : TJ
|
||||
|
||||
begin
|
||||
Result:=TJSHTMLAnchorElement(Document.createElement('a'));
|
||||
Result.AppendChild(aLinkContent);
|
||||
Result.href:=CreateDataURL(aFileName,aMimetype);
|
||||
Result.Download:=ExtractFileName(aFileName);
|
||||
aParent.AppendChild(Result);
|
||||
|
Loading…
Reference in New Issue
Block a user