Skip to content

Commit

Permalink
Fix window error in none browser environments.
Browse files Browse the repository at this point in the history
  • Loading branch information
gdotdesign committed May 7, 2017
1 parent e6f336d commit f983acf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions source/Native/FileManager.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Make sure we have a window object...
if(typeof window === "undefined") { window = {}; }

//download.js v4.1, by dandavis; 2008-2015. [CCBY2] see http://danml.com/download.html for tests/usage
window.download = function(data, strFileName, strMimeType) {
var self = window, // this script is only for browsers anyway...
Expand Down

0 comments on commit f983acf

Please sign in to comment.