FIX: prevents crash if composer trasnlation is not defined (#5)
This commit is contained in:
parent
3ce319c4a1
commit
e22540ad73
|
@ -364,8 +364,12 @@
|
|||
});
|
||||
|
||||
if (currUserTrustLevel >= minimumTrustLevel) {
|
||||
if (!I18n.translations[I18n.currentLocale()].js.composer) {
|
||||
I18n.translations[I18n.currentLocale()].js.composer = {};
|
||||
}
|
||||
I18n.translations[I18n.currentLocale()].js.composer.contains_dtoc = " ";
|
||||
|
||||
|
||||
api.addToolbarPopupMenuOptionsCallback(() => {
|
||||
const composerController = api.container.lookup("controller:composer");
|
||||
return {
|
||||
|
|
Loading…
Reference in New Issue