diff --git a/apps/documenteditor/forms/app/controller/ApplicationController.js b/apps/documenteditor/forms/app/controller/ApplicationController.js index 27c1b8fe9..f0e333470 100644 --- a/apps/documenteditor/forms/app/controller/ApplicationController.js +++ b/apps/documenteditor/forms/app/controller/ApplicationController.js @@ -1846,7 +1846,7 @@ define([ window.on_native_message = function (cmd, param) { if (/theme:changed/.test(cmd)) { - if ( !!Common.UI.Themes.setTheme ) + if ( Common.UI.Themes && !!Common.UI.Themes.setTheme ) Common.UI.Themes.setTheme(param); } else if (/window:features/.test(cmd)) {