filer.js
filer.js copied to clipboard
"FileError is deprecated"
Chrome 32.0.1700.102 shows the following console warning:
"FileError is deprecated. Please use the 'name' or 'message' attributes of DOMError rather than 'code'."
Chrome 44, Filer v 0.4.3 and I also get this warning.
I'm wating this pullrequest to remove the usage of FileError and solve a error on Firefox 66. https://github.com/ebidel/filer.js/pull/69
https://github.com/ebidel/filer.js/pull/69 was invalid and I don't see another.
I've used this in production before:
// Prevent errors in browsers that don't support FileError; TODO: This is hokey
if ((self.FileError === undefined) || (FileError === undefined)) {
var FileError = function() {};
FileError.prototype.prototype = Error.prototype;
}