mirror of
https://github.com/google/blockly.git
synced 2026-01-07 17:10:11 +01:00
fix: Fix bug when referencing HTMLElement in non-browser environments. (#9050)
This commit is contained in:
@@ -800,7 +800,9 @@ export class FieldDropdown extends Field<string> {
|
||||
option[0] &&
|
||||
typeof option[0] !== 'string' &&
|
||||
!isImageProperties(option[0]) &&
|
||||
!(option[0] instanceof HTMLElement)
|
||||
!(
|
||||
typeof HTMLElement !== 'undefined' && option[0] instanceof HTMLElement
|
||||
)
|
||||
) {
|
||||
foundError = true;
|
||||
console.error(
|
||||
|
||||
Reference in New Issue
Block a user