Skip to content

Commit

Permalink
fix(file): platform Browser will raise a an DOMException (#1082)
Browse files Browse the repository at this point in the history
fix(File): Platform Browser will raise a an DOMException on resoleLocalFilesystemUrl and tries to write on readonly property DOMException err.message in fillErrorMessage
  • Loading branch information
jansgescheit authored and ihadeed committed Mar 2, 2017
1 parent 318ad3f commit 2fba915
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/plugins/file.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1034,6 +1034,9 @@ export class File {
* @private
*/
private static fillErrorMessage(err: FileError): void {
if (typeof err === "DOMException") {
return;
}
err.message = File.cordovaFileError[err.code];
}

Expand Down

0 comments on commit 2fba915

Please sign in to comment.