Skip to content

Commit 744aec2

Browse files
committed
fix: Expose GLightbox as lhGlightbox to window
1 parent fece733 commit 744aec2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

plugin/src/js/lightbox.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import GLightbox from 'glightbox';
22

3+
window.lhGlightbox = window?.lhGlightbox ?? GLightbox;
4+
35
document.addEventListener('DOMContentLoaded', () => {
46
new LightboxControl();
57
});

0 commit comments

Comments
 (0)