This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
This polyfil is probably incomplete, I made this just to use localforage on internet explorer. | |
This polyfill is tested only with this library and works well, but I don't know if it will work i other cases. | |
This polyfill is based on this code: https://github.com/nolanlawson/blob-util/blob/4ae6c7a14d3240d977bbdab9ae2f0bb8905ecc37/lib/index.js#L123-L141 | |
*/ | |
if (window.FileReader){ | |
if(typeof FileReader.prototype.readAsBinaryString !== 'function'){ | |
console.log("Warning: Using readAsBinaryString polyfill"); | |
FileReader.prototype.readAsBinaryString = function(blb){ |