Skip to content

Commit

Permalink
change images path
Browse files Browse the repository at this point in the history
  • Loading branch information
hitalloazevedo committed Feb 23, 2024
1 parent 40933d5 commit 4b906b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ btnSwitch.addEventListener('click', () => {
mode.classList.toggle('light')

if (mode.classList.contains('light')) {
image.setAttribute('src', './assets/avatar-light.png')
image.setAttribute('src', '.' + '/assets/avatar-light.png')
} else {
image.setAttribute('src', './assets/avatar.png')
image.setAttribute('src', '.' + '/assets/avatar.png')
}
})

0 comments on commit 4b906b6

Please sign in to comment.