Skip to content

Commit 334dac1

Browse files
authored
Merge pull request #1 from JiLiZART/patch-1
Fix window is not defined error
2 parents b5f7195 + 3d4896f commit 334dac1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/main.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,8 @@ const Lightbox = {
1212

1313
if (typeof window !== 'undefined' && window.Vue) {
1414
window.Vue.use(Lightbox);
15+
window.Lightbox = Lightbox
1516
}
1617

17-
window.Lightbox = Lightbox
18-
1918
export { Lightbox }
2019
export default Lightbox

0 commit comments

Comments
 (0)