From bf6f788d0dc8ba2fbb91e58fe70e0c819a67e6a7 Mon Sep 17 00:00:00 2001 From: maxkadushkin Date: Fri, 30 May 2025 01:19:04 +0300 Subject: [PATCH] [common] fix for IE --- apps/common/main/lib/util/themeinit.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/common/main/lib/util/themeinit.js b/apps/common/main/lib/util/themeinit.js index df33038745..608b78489d 100644 --- a/apps/common/main/lib/util/themeinit.js +++ b/apps/common/main/lib/util/themeinit.js @@ -63,7 +63,7 @@ window.uitheme.relevant_theme_id = function () { if ( this.is_theme_system() ) - return this.is_system_theme_dark() ? 'theme-dark' : 'theme-classic-light'; + return this.is_system_theme_dark() ? 'theme-night' : 'theme-white'; return this.id; } @@ -95,7 +95,8 @@ const sp_scale = {'100':'', '125':'@1.25x','150':'@1.5x','175':'@1.75x','200':'@2x'}; let icons = []; sp_names.forEach(function (n) { - for (const [key, value] of Object.entries(sp_scale)) { + for (let key in sp_scale) { + const value = sp_scale[key]; icons.push('--sprite-button-'+n+'-'+key+':url('+ base_url +'icons' + n + value + '.png)'); } });