Skip to content

Commit

Permalink
Change default value for isHtml to false
Browse files Browse the repository at this point in the history
  • Loading branch information
katzer committed Nov 30, 2018
1 parent 9f19ee5 commit ccff9eb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
- [__change__]: `requestPermission` takes 3 arguments now. The first one has to be a value of `cordova.plugins.email.permission`.
- [__change__]: Remove support lib from being installed (Android).
- [__change__]: Remove deprecated namespace `plugin.email`.
- [__change__]: Remove deprecated support for `isHTML`.
- [__change__]: Change default value for `isHtml` to `false`.
- [enhancement]: Skip chooser if there's only the default app (#302)
- [bugfix:] Do not open old email draft [fixes #303]

Expand Down
6 changes: 1 addition & 5 deletions www/email_composer.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ exports.getDefaults = function () {
cc: [],
bcc: [],
attachments: [],
isHtml: true
isHtml: false
};
};

Expand Down Expand Up @@ -196,10 +196,6 @@ exports.openDraft = function () {
exports.mergeWithDefaults = function (options) {
var defaults = this.getDefaults();

if (options.hasOwnProperty('isHTML')) {
options.isHtml = options.isHTML;
}

if (!options.hasOwnProperty('isHtml')) {
options.isHtml = defaults.isHtml;
}
Expand Down

0 comments on commit ccff9eb

Please sign in to comment.