fixed terser error caused by not supported optional chaining operator (?.)

This commit is contained in:
ralf 2022-06-09 13:32:22 +02:00
parent c3f4d130b6
commit 96e9f65b86

View File

@ -5633,7 +5633,8 @@ app.classes.mail = AppJS.extend(
}
// apply default font and -size before submitting to server for sending
this.et2?.getWidgetById('mail_htmltext')?.applyDefaultFont();
const htmlarea = this.et2 ? this.et2.getWidgetById('mail_htmltext') : null;
if (htmlarea) htmlarea.applyDefaultFont();
return false;
},
@ -6504,4 +6505,4 @@ app.classes.mail = AppJS.extend(
resizable: false,
}, et2_dialog._create_parent('mail'));
}
});
});