You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "kfeng0806 (via GitHub)" <gi...@apache.org> on 2023/02/01 20:04:23 UTC
[GitHub] [cordova-plugin-file] kfeng0806 commented on issue #316: Do not overwrite standard File API
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: issues-unsubscribe@cordova.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org