Skip to content

Commit 6be8082

Browse files
committed
Update script.js
1 parent 9102f01 commit 6be8082

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

features/asset-size/script.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ export default async function ({ feature, console }) {
1010
);
1111

1212
asset.firstChild.addEventListener("mouseover", function () {
13+
if (!feature.self.enabled) return;
14+
1315
let scratchAsset = ScratchTools.Scratch.vm.editingTarget;
1416
let targetAssets =
1517
feature.traps.gui().editorTab?.activeTabIndex === 1

0 commit comments

Comments
 (0)