mirror of
https://github.com/google/blockly.git
synced 2026-01-27 02:30:08 +01:00
Fix hat logic
This commit is contained in:
@@ -567,7 +567,7 @@ Blockly.BlockSvg.prototype.renderDraw_ = function(iconWidth, inputRows) {
|
||||
this.squareTopLeftCorner_ = true;
|
||||
this.squareBottomLeftCorner_ = true;
|
||||
} else {
|
||||
var renderCap = typeof this.hat !== undefined ? this.hat === 'cap' :
|
||||
var renderCap = this.hat ? this.hat === 'cap' :
|
||||
Blockly.BlockSvg.START_HAT;
|
||||
|
||||
this.squareTopLeftCorner_ = false;
|
||||
|
||||
Reference in New Issue
Block a user