Skip to content

Commit

Permalink
ext: fix removing: send id as number
Browse files Browse the repository at this point in the history
  • Loading branch information
K1DV5 committed Feb 19, 2021
1 parent d17c4b4 commit 2d32a77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extension/popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ function update(id) {
document.getElementById('remove').addEventListener('click', event => {
event.preventDefault()
if (lastFocusItem == null) return
if (downloads.remove(lastFocusItem.id)) {
if (downloads.remove(Number(lastFocusItem.id))) {
lastFocusItem.remove()
lastFocusItem = undefined
// update buttons
Expand Down

0 comments on commit 2d32a77

Please sign in to comment.