kfeng0806 commented on issue #316:
URL:
https://github.com/apache/cordova-plugin-file/issues/316#issuecomment-1412651162
A temporary fix if there is no other plugin depending on the plugin's File
class
```javascript
const nativeFile = window.File;
window.document.addEventListener('deviceready', () => {
window.CordovaFile = window.File;
window.File = nativeFile;
});
```
No breaks on the browser's native `File`, `CordovaFile` will be the plugin's
`File` class
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]