Skip to content

Commit

Permalink
Use another color-string to nunber method
Browse files Browse the repository at this point in the history
  • Loading branch information
rexrainbow committed Dec 15, 2024
1 parent ce9127a commit 14c71d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/utils/color/ColorStringToInteger.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import CSSColorStringToInteger from './CssColorStringToInteger.js';
import { ColorNameToInteger } from './ColorNameToInteger.js';

var ColorStringToInteger = function (value) {
if (typeof (value) !== 'string') {
Expand All @@ -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;
}
Expand Down

0 comments on commit 14c71d0

Please sign in to comment.