Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: check before loading comments #374

Merged
merged 1 commit into from
Mar 27, 2022
Merged

fix: check before loading comments #374

merged 1 commit into from
Mar 27, 2022

Conversation

makisevon
Copy link
Contributor

Check if the relevant container exists before loading comments to avoid uncaught errors being thrown when loading. For example, pages without comments will throw Uncaught Error: Container not found, window.document.getElementById: gitalk-container when using Gitalk.

@reuixiy reuixiy merged commit 1c0beed into reuixiy:master Mar 27, 2022
ulmefors pushed a commit to ulmefors/hugo-theme-meme that referenced this pull request Jan 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants