Skip to content

Commit 972e18d

Browse files
authored
[FIX] Call all the methods for window.onload once (#1683)
1 parent c1cd1af commit 972e18d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

.storybook/manager-head.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626

2727
window.onload = () => {
2828
addUsefulLinks();
29+
setUpBottomBar();
2930
}
3031

3132
function addUsefulLinks() {
@@ -218,9 +219,6 @@
218219
return new Promise(resolve => setTimeout(resolve, ms));
219220
}
220221

221-
window.onload = function () {
222-
return setUpBottomBar();
223-
}
224222
updateOnZoom();
225223
updateOnWindowResize();
226224
updateOnOrientationChange();

0 commit comments

Comments
 (0)