mirror of
https://github.com/scratchfoundation/scratch-blocks.git
synced 2025-08-28 22:10:31 -04:00
Add default case to switch
This commit is contained in:
parent
27782c97c6
commit
c94a5e37f6
1 changed files with 2 additions and 0 deletions
|
@ -123,6 +123,8 @@ Blockly.FieldColourSlider.prototype.createColourStops_ = function(channel) {
|
|||
case 'brightness':
|
||||
stops.push(goog.color.hsvToHex(hsv[0], hsv[1], 255 * n / 360));
|
||||
break;
|
||||
default:
|
||||
throw new Error("Unknown channel for colour sliders: " + channel);
|
||||
}
|
||||
}
|
||||
return stops;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue