Update article.md
This commit is contained in:
parent
331fafd626
commit
99e59ba611
1 changed files with 1 additions and 1 deletions
|
@ -145,7 +145,7 @@ let analyticsData = { /* object with gathered data */ };
|
|||
|
||||
window.addEventListener("unload", function() {
|
||||
navigator.sendBeacon("/analytics", JSON.stringify(analyticsData));
|
||||
};
|
||||
});
|
||||
```
|
||||
|
||||
- The request is sent as POST.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue