fix(file): platform Browser will raise a an DOMException (#1082)
fix(File): Platform Browser will raise a an DOMException on resoleLocalFilesystemUrl and tries to write on readonly property DOMException err.message in fillErrorMessage
This commit is contained in:
parent
318ad3f4e0
commit
2fba915b88
@ -1034,6 +1034,9 @@ export class File {
|
|||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
private static fillErrorMessage(err: FileError): void {
|
private static fillErrorMessage(err: FileError): void {
|
||||||
|
if (typeof err === "DOMException") {
|
||||||
|
return;
|
||||||
|
}
|
||||||
err.message = File.cordovaFileError[err.code];
|
err.message = File.cordovaFileError[err.code];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user