From 361d785e2ebbc2b9a33f7cd4e779ce4c18465e30 Mon Sep 17 00:00:00 2001 From: simon Date: Wed, 15 Sep 2021 20:54:30 +0700 Subject: [PATCH] fix removing unsubscribe button --- tubearchivist/static/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tubearchivist/static/script.js b/tubearchivist/static/script.js index 51e4a8b..05a9816 100644 --- a/tubearchivist/static/script.js +++ b/tubearchivist/static/script.js @@ -40,7 +40,7 @@ function isWatched(youtube_id) { function unsubscribe(channel_id) { var payload = JSON.stringify({'unsubscribe': channel_id}); sendPost(payload); - document.getElementById('sub-' + channel_id).remove(); + document.getElementById(channel_id).remove(); } // download page buttons