filer.js icon indicating copy to clipboard operation
filer.js copied to clipboard

"FileError is deprecated"

Open bux opened this issue 11 years ago • 3 comments

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'."

bux avatar Jan 28 '14 10:01 bux

Chrome 44, Filer v 0.4.3 and I also get this warning.

paulcanning avatar Aug 11 '15 15:08 paulcanning

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

rodrigos0ares avatar Apr 09 '19 18:04 rodrigos0ares

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;
}

michaelpeterlee avatar Jul 13 '20 22:07 michaelpeterlee