Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jwklong committed Nov 24, 2024
1 parent 50e32fc commit 4798f38
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/extensions/jwTargets/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class TargetType {

toReporterContent() {
try {
let target = vm.runtime.getTargetsById(this.targetId)[0]
let target = vm.runtime.getTargetById(this.targetId)[0]
let name = target.name
let isClone = !target.isOriginal
let costumeURI = target.getCostumes()[target.currentCostume].asset.encodeDataURI()
Expand All @@ -46,8 +46,7 @@ class TargetType {
root.appendChild(span(`${name}${isClone ? ' (clone)' : ''}`))

return root
} catch (e) {
console.error(e)
} catch {
return span("Unknown")
}
}
Expand Down

0 comments on commit 4798f38

Please sign in to comment.