FIX: prevents crash if composer trasnlation is not defined (#5)
This commit is contained in:
parent
3ce319c4a1
commit
e22540ad73
|
@ -364,7 +364,11 @@
|
|||
});
|
||||
|
||||
if (currUserTrustLevel >= minimumTrustLevel) {
|
||||
I18n.translations[I18n.currentLocale()].js.composer.contains_dtoc = "";
|
||||
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");
|
||||
|
|
Loading…
Reference in New Issue