Replace ⚪ emoji with favicon.ico pokeball on throw ball button
This commit is contained in:
1 parent
ebac04a578
commit
788b00f05a
1 file changed
+1
-1
@@ -1306,7 +1306,7 @@ class Game {
|
||||
|
||||
const throwBtn = document.createElement('button');
|
||||
throwBtn.className = 'catch-action-btn btn-pixel btn-red';
|
||||
throwBtn.textContent = '⚪ THROW BALL';
|
||||
throwBtn.innerHTML = '<img src="./favicon.ico" class="pokeball-icon"> THROW BALL';
|
||||
throwBtn.disabled = this.state.pokeballs <= 0;
|
||||
if (this.state.pokeballs <= 0) throwBtn.style.opacity = '0.4';
|
||||
throwBtn.addEventListener('click', () => this.throwPokeball(wild, canCatch));
|
||||
|
||||
Reference in new issue
Block a user