mirror of
https://github.com/google/blockly.git
synced 2026-01-11 02:47:09 +01:00
Small cleanup
This commit is contained in:
@@ -1446,7 +1446,7 @@ Blockly.Block.prototype.jsonInitStyle_ = function(json, warningPrefix) {
|
||||
var blockStyleName = json['style'];
|
||||
try {
|
||||
this.setStyle(blockStyleName);
|
||||
} catch (colorError) {
|
||||
} catch (styleError) {
|
||||
console.warn(warningPrefix + 'Style does not exist: ', blockStyleName);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user