diff --git a/src/FileToDataURI.js b/src/FileToDataURI.js index 9257d8f..1bb6fd5 100644 --- a/src/FileToDataURI.js +++ b/src/FileToDataURI.js @@ -48,7 +48,7 @@ _init: function() { var id = Math.round(Math.random()*1e9), - context = typeof FileReader == 'function' ? 'native' : 'flash' // Detect if FileReader is supported or not + context = typeof FileReader == 'undefined' ? 'flash' : 'native' // Detect if FileReader is supported or not ; if ( this.data('FileToDataURI').options.forceFlash ) {