From ae762808b2575d58dcfa75f9ae653be4e932f933 Mon Sep 17 00:00:00 2001 From: kek7198 Date: Sun, 2 Jan 2022 22:41:09 -0600 Subject: [PATCH] fix --- files/assets/CHRISTMAS/js/popover.js | 4 +++- files/templates/CHRISTMAS/ProfilePopover.html | 2 +- files/templates/CHRISTMAS/default.html | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/files/assets/CHRISTMAS/js/popover.js b/files/assets/CHRISTMAS/js/popover.js index e5c62576d..14d5311c4 100644 --- a/files/assets/CHRISTMAS/js/popover.js +++ b/files/assets/CHRISTMAS/js/popover.js @@ -27,7 +27,9 @@ function userPopover(author) { popover_new.getElementsByClassName('pop-badges')[0].innerHTML = badges popover_new.getElementsByClassName('pop-uid')[0].innerHTML = author["id"] - popover_new.getElementsByClassName('pop-dm-button')[0].setAttribute('data-bs-recipient', 'mdo') + popover_new.getElementById('pop-dm-button').setAttribute('data-bs-recipient', 'mdo'); + + // popover_new.getElementsByClassName('pop-dm-button')[0].setAttribute('data-bs-recipient', 'mdo') document.body.appendChild(popover_new); document.body.removeChild(popover_old); diff --git a/files/templates/CHRISTMAS/ProfilePopover.html b/files/templates/CHRISTMAS/ProfilePopover.html index 03077d348..e066788b0 100644 --- a/files/templates/CHRISTMAS/ProfilePopover.html +++ b/files/templates/CHRISTMAS/ProfilePopover.html @@ -45,7 +45,7 @@ - diff --git a/files/templates/CHRISTMAS/default.html b/files/templates/CHRISTMAS/default.html index d10210fe3..60eac251c 100644 --- a/files/templates/CHRISTMAS/default.html +++ b/files/templates/CHRISTMAS/default.html @@ -335,7 +335,7 @@ - +