fix removing unsubscribe button

This commit is contained in:
simon 2021-09-15 20:54:30 +07:00
parent 0e4de95f97
commit 361d785e2e
1 changed files with 1 additions and 1 deletions

View File

@ -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