From e15e50d21efba90ca066d36901096dbcac79b75c Mon Sep 17 00:00:00 2001 From: Maxim Kadushkin Date: Thu, 2 Dec 2021 10:18:03 +0300 Subject: [PATCH] [forms] fix theme applying for desktop --- .../forms/app/controller/ApplicationController.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/documenteditor/forms/app/controller/ApplicationController.js b/apps/documenteditor/forms/app/controller/ApplicationController.js index e7a33bbd3..eea2ad09c 100644 --- a/apps/documenteditor/forms/app/controller/ApplicationController.js +++ b/apps/documenteditor/forms/app/controller/ApplicationController.js @@ -1818,7 +1818,8 @@ define([ window.on_native_message = function (cmd, param) { if (/theme:changed/.test(cmd)) { - Common.UI.Themes.setTheme(param); + if ( !!Common.UI.Themes.setTheme ) + Common.UI.Themes.setTheme(param); } else if (/window:features/.test(cmd)) { var obj = JSON.parse(param);