Comments (1)
@lvanderbijl, @holm, I guess I found the simplest solution: returning an empty function if saveAs is undefined. It doesn't crash in IE9. However, it doesn't work in IE8 as angular team dropped IE8 support.
I'm not sure what is the best way to handle it after, though. Console.error an error message? :D
Return null
instead of undefined
, maybe?
return require('FileSaver.js').saveAs || function() { return null; };
from angular-file-saver.
Related Issues (20)
- Save streamed data body from $http.get request
- Not saving files properly with .xls extension
- How to set the path for saved files HOT 1
- Saving data to a file without overwriting file's content?
- new Blob not working in Safari. HOT 2
- Change the Format of Encoding/File HOT 1
- Downloaded file is corrupted HOT 2
- Is there a way to attach a promise to the save as? HOT 1
- Images getting corrupted on download
- Safari usage requires the User to Specify the blob type as "application/octet-stream"
- [Feature Request] Broadcast saveAs() result
- Doesnt work in iOS Firefox
- [BUG] Not working with AVIRA antivirus
- Downloading a zip file containing multiple csv files
- Download multiple files with a loop on Chrome 65
- save file as pdf or word from string base64 or blob
- The file format and extension of ABC.xls don't match.
- how can i save to a different location?
- Missing Bower Dependency HOT 9
- Authentication failed for 'https://github.com/Teleborder/FileSaver.js.git/' HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angular-file-saver.