Github user SomaticIT commented on the pull request: https://github.com/apache/cordova-plugin-file/pull/54#issuecomment-58211689 I created 2 shortcuts to __writeBytesAsync__ and __writeTextAsync__ and a new function __writeBlobAsync__. Then I do : if (data instanceof Blob) { writePromise = writeBlobAsync; } else if (isBinary) { writePromise = writeBytesAsync; } else { writePromise = writeTextAsync; }
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@cordova.apache.org For additional commands, e-mail: dev-h...@cordova.apache.org