From dc37c7b28b2142227f73a36acc27a7ac77c7e59a Mon Sep 17 00:00:00 2001 From: tusooa Date: Fri, 31 May 2024 14:33:44 -0400 Subject: Fix Themes v3 not working on Safari --- src/services/theme_data/theme_data_3.service.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/services/theme_data/theme_data_3.service.js') diff --git a/src/services/theme_data/theme_data_3.service.js b/src/services/theme_data/theme_data_3.service.js index 15b4493e..047ba8a2 100644 --- a/src/services/theme_data/theme_data_3.service.js +++ b/src/services/theme_data/theme_data_3.service.js @@ -1,6 +1,6 @@ import { convert, brightness } from 'chromatism' import sum from 'hash-sum' -import { flattenDeep } from 'lodash' +import { flattenDeep, sortBy } from 'lodash' import { alphaBlend, getTextColor, @@ -226,7 +226,7 @@ export const init = (extraRuleset, ultimateBackgroundColor) => { combination.variant === 'normal' ? '' : combination.variant[0].toUpperCase() + combination.variant.slice(1).toLowerCase(), - ...combination.state.filter(x => x !== 'normal').toSorted().map(state => state[0].toUpperCase() + state.slice(1).toLowerCase()) + ...sortBy(combination.state.filter(x => x !== 'normal')).map(state => state[0].toUpperCase() + state.slice(1).toLowerCase()) ].join('') let inheritedTextColor = computedDirectives.textColor -- cgit v1.2.3-70-g09d2