Skip to content

Commit

Permalink
feat: test beforeunload compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Leoglme committed Feb 18, 2024
1 parent fee8698 commit 329d8bc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions public/mon-script.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@
console.log('fetch')
await fetch(apiUrl, {
body: JSON.stringify(data),
headers: {
'Content-Type': 'application/json',
},
method: 'POST',
keepalive: true,
})
Expand Down

0 comments on commit 329d8bc

Please sign in to comment.