Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
TurtIeSocks committed Nov 25, 2023
1 parent bd3d8f9 commit 829057c
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions src/services/Icons.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,15 +131,15 @@ class UIcons {
}
})
// for debugging purposes/viewing
if (!window.uicons) {
Object.defineProperty(window, 'uicons', {
value: this,
writable: false,
enumerable: true,
configurable: false,
})
}
return this
// if (!window.uicons) {
Object.defineProperty(window, 'uicons', {
value: this,
writable: true,
enumerable: true,
configurable: false,
})
// }
// return this
}

get selection() {
Expand Down Expand Up @@ -312,9 +312,10 @@ class UIcons {
}
return `${baseUrl}/0.${extension}`
} catch (e) {
console.error('[UICONS]', e)
console.error('[UICONS]', this)
console.error('[UICONS]', this.selected.pokemon)
console.error('[UICONS] Error:', e)
console.error('[UICONS] This:', this)
console.error('[UICONS] Selected Pokemon', this.selected.pokemon)
console.error('[UICONS] Select UICON', this[this.selected.pokemon])
return `${this.fallback}/pokemon/0.webp`
}
}
Expand Down

0 comments on commit 829057c

Please sign in to comment.