Skip to content
This repository was archived by the owner on Oct 13, 2022. It is now read-only.

Commit 4402636

Browse files
committed
Fix duplicated elements
1 parent 820f653 commit 4402636

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/client.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import * as sapper from '@sapper/app';
22

3-
sapper.start({
4-
target: document.querySelector('#sapper')
5-
});
3+
window.addEventListener('load', () => {
4+
sapper.start({
5+
target: document.querySelector('#sapper')
6+
});
7+
});

0 commit comments

Comments
 (0)