deploy
This commit is contained in:
@@ -22,11 +22,11 @@ export function PageLoadTracker({ locale }) {
|
||||
|
||||
if (navigator.sendBeacon) {
|
||||
const blob = new Blob([body], { type: "application/json" });
|
||||
navigator.sendBeacon("/api/page-load", blob);
|
||||
navigator.sendBeacon("/track/page-load", blob);
|
||||
return;
|
||||
}
|
||||
|
||||
fetch("/api/page-load", {
|
||||
fetch("/track/page-load", {
|
||||
method: "POST",
|
||||
headers: { "content-type": "application/json" },
|
||||
body,
|
||||
|
||||
Reference in New Issue
Block a user