Skip to content

Commit

Permalink
Update pin-system.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Do-Not-Dusturb authored Jan 14, 2025
1 parent 8a9e688 commit ed88151
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions JS/pin-system.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ document.addEventListener('DOMContentLoaded', () => {
const gameTitle = link.textContent;
const pinButton = document.createElement('span');
pinButton.className = 'pin-button';
pinButton.textContent = pinnedGames.includes(gameTitle) ? '🌟' : '';
pinButton.textContent = pinnedGames.includes(gameTitle) ? '💛' : '💜';

if (pinnedGames.includes(gameTitle)) {
pinButton.classList.add('pinned');
Expand All @@ -17,7 +17,7 @@ document.addEventListener('DOMContentLoaded', () => {
e.stopPropagation();

pinButton.classList.toggle('pinned');
pinButton.textContent = pinButton.classList.contains('pinned') ? '🌟' : '';
pinButton.textContent = pinButton.classList.contains('pinned') ? '💛' : '💜';

const updatedPins = pinButton.classList.contains('pinned')
? [...pinnedGames, gameTitle]
Expand Down

0 comments on commit ed88151

Please sign in to comment.