🐛 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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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');