Skip to content

Commit 123e634

Browse files
committed
style(lightgallery.ts): code style
1 parent 612e26a commit 123e634

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/lightgallery.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,10 @@ export class LightGallery {
159159
this.zoomFromOrigin = false;
160160
}
161161

162+
if (!this.settings.container) {
163+
this.settings.container = document.body;
164+
}
165+
162166
// settings.preload should not be grater than $item.length
163167
this.settings.preload = Math.min(
164168
this.settings.preload,
@@ -167,9 +171,6 @@ export class LightGallery {
167171
}
168172

169173
init(): void {
170-
if ( null === this.settings.container ) {
171-
this.settings.container = document.body;
172-
}
173174
this.addSlideVideoInfo(this.galleryItems);
174175

175176
this.buildStructure();

0 commit comments

Comments
 (0)