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

Commit e26c8f0

Browse files
refactor(templates): Remove event listener in JavaScript template (#84)
1 parent e18398c commit e26c8f0

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

scripts/__snapshots__/e2e-templates.test.js.snap

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3277,9 +3277,7 @@ $searchBox.addEventListener('input', event => {
32773277
renderHits(query);
32783278
});
32793279
3280-
document.addEventListener('DOMContentLoaded', () => {
3281-
renderHits('');
3282-
});"
3280+
renderHits('');"
32833281
`;
32843282
32853283
exports[`Templates JavaScript Client File content: src/index.css 1`] = `

src/templates/JavaScript Client/src/app.js.hbs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,4 @@ $searchBox.addEventListener('input', event => {
2424
renderHits(query);
2525
});
2626

27-
document.addEventListener('DOMContentLoaded', () => {
28-
renderHits('');
29-
});
27+
renderHits('');

0 commit comments

Comments
 (0)