mirror of
https://github.com/supabase/supabase.git
synced 2026-10-08 10:55:06 +03:00
19 lines
442 B
JavaScript
19 lines
442 B
JavaScript
function telemetry() {
|
|
return fetch('https://app.supabase.io/api/telemetry/page', {
|
|
mode: 'cors', // 'cors' by default,
|
|
method: 'POST',
|
|
headers: {
|
|
'Content-Type': 'application/json',
|
|
Accept: 'application/json',
|
|
},
|
|
body: JSON.stringify({
|
|
referrer: document.referrer,
|
|
title: document.title,
|
|
}),
|
|
}).catch((error) => {
|
|
console.error('Error at telemetry - post:', error)
|
|
})
|
|
}
|
|
|
|
telemetry()
|