You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using the file-saver in an Angular application. I imported and used the file-saver by the following line:
import{saveAs}from'file-saver'exportclassMyClass{publicsomeFunction(){// defining and filling myFileContent with a Uint8Array constblob=newBlob([myFileContent],{type: 'application/octet-stream'})saveAs(blob,'.gitignore',{type: 'application/octet-stream'})}}
But the file is downloaded as gitignore - the leading dot is missing. Happens on MacOS as well as on Windows systems.
I tried duplicating the dot as well as using standard escape characters, but nothing led to a solution. Is it even possible?
The text was updated successfully, but these errors were encountered:
I am using the file-saver in an Angular application. I imported and used the file-saver by the following line:
But the file is downloaded as
gitignore
- the leading dot is missing. Happens on MacOS as well as on Windows systems.I tried duplicating the dot as well as using standard escape characters, but nothing led to a solution. Is it even possible?
The text was updated successfully, but these errors were encountered: