🐛 fix(hyvor-talk): switch from ID to class selector for initialisation (#196)

This commit is contained in:
Óscar Fernández
2023-10-04 18:02:36 +02:00
committed by GitHub
parent 228f1ea6e5
commit 040a46dc4b
2 changed files with 2 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
function initHyvorTalk() {
// Get the div that will contain the comments.
const commentsDiv = document.querySelector('#comments');
const commentsDiv = document.querySelector('.comments');
if (commentsDiv) {
// Get the various settings from data attributes on the div.
const websiteId = commentsDiv.getAttribute('data-website-id');