From a6b69ea60c469a7d6f0355e4a1ce20a65ca3ce6d Mon Sep 17 00:00:00 2001 From: maxkadushkin Date: Thu, 23 Dec 2021 21:50:08 +0300 Subject: [PATCH] [desktop] fix bug 54653 (#1441) --- .../forms/app/controller/ApplicationController.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) {