We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 373a74e + bab4caa commit 3a8b971Copy full SHA for 3a8b971
themes/simplecss/layouts/partials/footer.html
@@ -25,11 +25,14 @@
25
<!-- ViewerJS -->
26
<script src="https://cdnjs.cloudflare.com/ajax/libs/viewerjs/1.11.6/viewer.min.js" integrity="sha512-EC3CQ+2OkM+ZKsM1dbFAB6OGEPKRxi6EDRnZW9ys8LghQRAq6cXPUgXCCujmDrXdodGXX9bqaaCRtwj4h4wgSQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
27
<script>
28
- const gallery = new Viewer(
29
- document.querySelector("article > div:nth-child(2)"),
30
- {
31
- toolbar: false,
32
- initialCoverage: 1
33
- }
34
- );
+ const postContent = document.querySelector("article > div:nth-child(2)");
+ if (postContent) {
+ new Viewer(
+ postContent,
+ {
+ toolbar: false,
+ initialCoverage: 1
35
+ }
36
+ )
37
38
</script>
0 commit comments