Skip to content

Commit acc6a9c

Browse files
authored
Merge pull request #12 from MikeLundahl/fix/popup-instance
Fix/popup instance
2 parents d12925b + 36df8eb commit acc6a9c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: js/src/forum/index.js

+4
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ app.initializers.add('darkle/fancybox', () => {
1818
});
1919

2020
CommentPost.prototype.initFancybox = function () {
21+
22+
if (this.fancyboxInitialized) return;
23+
this.fancyboxInitialized = true;
24+
2125
const postBody = this.element.querySelector('.Post-body');
2226
if (!postBody) return;
2327

0 commit comments

Comments
 (0)