1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-01-10 09:20:26 +00:00

Clarify method name

This commit is contained in:
Jeremy Ruston 2025-01-08 14:49:19 +00:00
parent d1ce54806f
commit a4293068bf
2 changed files with 3 additions and 3 deletions

View File

@ -33,7 +33,7 @@ function SimpleEngine(options) {
} else {
if(this.widget.editType === "color") {
// The <input type="color"> element requires a six digit hex value
this.domNode.value = $tw.utils.convertColorToCSSRGBString(this.value);
this.domNode.value = $tw.utils.convertCSSColorToRGBString(this.value);
} else {
this.domNode.value = this.value;
}

View File

@ -42,9 +42,9 @@ exports.parseCSSColorObject = function(colourString) {
};
/*
Convert a Color.js colour to a CSS RGB string suitable for use with the <input type="color"> element
Convert a CSS colour to an RGB string suitable for use with the <input type="color"> element
*/
exports.convertColorToCSSRGBString = function(colourString) {
exports.convertCSSColorToRGBString = function(colourString) {
var c = exports.parseCSSColorObject(colourString);
if(c) {
var hex = c.toString({format: "hex"});