mirror of
https://github.com/google/blockly.git
synced 2026-01-08 17:40:09 +01:00
Use the theme name if it exists (#3843)
This commit is contained in:
@@ -283,7 +283,7 @@ Blockly.Options.parseThemeOptions_ = function(options) {
|
||||
if (theme instanceof Blockly.Theme) {
|
||||
return /** @type {!Blockly.Theme} */ (theme);
|
||||
}
|
||||
return Blockly.Theme.defineTheme('builtin', theme);
|
||||
return Blockly.Theme.defineTheme(theme.name || 'builtin', theme);
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user