Skip to content

Commit 431c51c

Browse files
karo3wilsonge
authored andcommitted
checkView when you starts on mobile device (#116)
At the moment checkView only check the window size when you resize the window. The change will check the window size from the beginning.
1 parent fbf89e9 commit 431c51c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/js/tab/tab.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@
167167
}
168168

169169
// Convert tabs to accordian
170+
self.checkView(self);
170171
window.addEventListener('resize', () => {
171172
self.checkView(self);
172173
});

0 commit comments

Comments
 (0)