diff --git a/libs/download.service.ts b/libs/download.service.ts index a2d4bbf..dcdae4e 100644 --- a/libs/download.service.ts +++ b/libs/download.service.ts @@ -57,7 +57,7 @@ export class DownloadFileService extends BaseHttpService { link.download = filename; link.style.display = 'none'; document.body.appendChild(link); - link.click(); + link.dispatchEvent(new MouseEvent('click')); window.URL.revokeObjectURL(href); link.remove(); } diff --git a/package.json b/package.json index 0307561..a3e9581 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@luxbss/gengen", - "version": "1.2.8", + "version": "1.2.9", "description": "Tool for generating models and Angular services based on OpenAPIs and Swagger's JSON", "bin": { "gengen": "./bin/index.js" @@ -47,4 +47,4 @@ "ts-jest": "29.1.1", "typescript": "5.2.2" } -} +} \ No newline at end of file