From 0ff375f675f20a42f67ab7a4497fc308f6d0cd52 Mon Sep 17 00:00:00 2001 From: Maxim Kadushkin Date: Wed, 22 Dec 2021 19:39:44 +0300 Subject: [PATCH] [desktop] fix bug 54653 --- .../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)) {