mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-02-21 00:23:00 +08:00
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 static fillErrorMessage(err: FileError): void {
|
||||
if (typeof err === "DOMException") {
|
||||
return;
|
||||
}
|
||||
err.message = File.cordovaFileError[err.code];
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user