From 14c71d04d9eb99b8be42508864ba04c9611e1cc3 Mon Sep 17 00:00:00 2001 From: Rex Date: Sun, 15 Dec 2024 10:41:52 +0800 Subject: [PATCH] Use another color-string to nunber method --- plugins/utils/color/ColorStringToInteger.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/utils/color/ColorStringToInteger.js b/plugins/utils/color/ColorStringToInteger.js index 95cb270b50..e17f4e44e1 100644 --- a/plugins/utils/color/ColorStringToInteger.js +++ b/plugins/utils/color/ColorStringToInteger.js @@ -1,4 +1,4 @@ -import CSSColorStringToInteger from './CssColorStringToInteger.js'; +import { ColorNameToInteger } from './ColorNameToInteger.js'; var ColorStringToInteger = function (value) { if (typeof (value) !== 'string') { @@ -10,7 +10,7 @@ var ColorStringToInteger = function (value) { } else if (value.startsWith('0x')) { value = parseInt(value.substring(2), 16); } else { - value = CSSColorStringToInteger(value); + value = ColorNameToInteger(value); } return value; }