Skip to content

Commit

Permalink
Use addEventListener instead of window.onload
Browse files Browse the repository at this point in the history
  • Loading branch information
rwngallego committed Jan 6, 2022
1 parent a0bf073 commit 6b97bbb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,6 @@ const PerfectyPush = (() => {

export default PerfectyPush

window.onload = () => {
window.addEventListener('load', () => {
PerfectyPush.start(window.PerfectyPushOptions)
}
})

0 comments on commit 6b97bbb

Please sign in to comment.