Skip to content

Commit

Permalink
11
Browse files Browse the repository at this point in the history
  • Loading branch information
jwoojin9 committed Apr 3, 2024
1 parent 1ed5410 commit 1448693
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion pokemon/main.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
const urlParams = new URL(location.href).searchParams;
const n = parseInt(urlParams.get('n'));
history.replaceState({}, null, location.pathname);

const img = document.createElement("img");
img.src=`https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/${n+1}.png`
Expand Down

0 comments on commit 1448693

Please sign in to comment.