[desktop] fix bug 54653 (#1441)

This commit is contained in:
maxkadushkin 2021-12-23 21:50:08 +03:00 committed by GitHub
parent ed50edff6c
commit a6b69ea60c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)) {