Skip to content

Commit

Permalink
Fixed unpinning scrolling up on firefox
Browse files Browse the repository at this point in the history
  • Loading branch information
FMaz008 committed Oct 10, 2024
1 parent 976f306 commit 44a75a7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/Grid.js
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,8 @@ async function addPinnedTile(asin, queue, title, thumbnail, is_parent_asin, enro
document.getElementById("tab-pinned").appendChild(content);

//Bind the click event for the unpin button
document.querySelector("#vh-pin-" + asin + " .unpin-link").onclick = () => {
document.querySelector("#vh-pin-" + asin + " .unpin-link").onclick = (e) => {
e.preventDefault();
PinnedList.removeItem(asin);
document.getElementById("vh-pin-" + asin).remove();

Expand Down

0 comments on commit 44a75a7

Please sign in to comment.