Skip to content

Commit c70befe

Browse files
committed
fix: remove unnecessary type check
1 parent 885060f commit c70befe

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,7 @@ export function inject(container: Element, options: ScratchBlocksOptions) {
157157
* @returns True if a content node has focus, false otherwise.
158158
*/
159159
export function isContentNodeFocused(): boolean {
160-
const node = Blockly.getFocusManager().getFocusedNode()
161-
return node !== null && !(node instanceof Blockly.WorkspaceSvg)
160+
return Blockly.getFocusManager().getFocusedNode() !== null
162161
}
163162

164163
registerContinuousToolbox()

0 commit comments

Comments
 (0)