Skip to content

Commit 75e1a39

Browse files
committed
Built against newer version of Blockly.
1 parent f446ad4 commit 75e1a39

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

plugins/content-highlight/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
"typescript": "^5.4.5"
4949
},
5050
"peerDependencies": {
51-
"blockly": "^11.1.2"
51+
"blockly": "^11.2.0"
5252
},
5353
"publishConfig": {
5454
"access": "public",

plugins/content-highlight/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ export class ContentHighlight {
185185
private onChange(event: Blockly.Events.Abstract) {
186186
if (event.type === Blockly.Events.THEME_CHANGE) {
187187
this.applyColor();
188-
} else if (contentChangeEvents.indexOf(event.type) !== -1) {
188+
} else if ((contentChangeEvents as string[]).indexOf(event.type) !== -1) {
189189
const metricsManager = this.workspace.getMetricsManager();
190190
if (event.type !== Blockly.Events.VIEWPORT_CHANGE) {
191191
// The content metrics change when it's not a viewport change event.

0 commit comments

Comments
 (0)