1
0
mirror of synced 2026-01-30 06:01:34 -05:00

Merge branch 'main' into repo-sync

This commit is contained in:
Octomerger Bot
2021-07-03 06:02:07 +10:00
committed by GitHub
3 changed files with 13 additions and 2 deletions

View File

@@ -105,6 +105,10 @@ Ionic | Ionic Personal Access Token | ionic_personal_access_token{% endif %}
{%- ifversion fpt or ghes > 3.1 or ghae-next %}
Ionic | Ionic Refresh Token | ionic_refresh_token{% endif %}
{%- ifversion fpt or ghes > 3.1 or ghae-next %}
Linear | Linear API Key | linear_api_key{% endif %}
{%- ifversion fpt or ghes > 3.1 or ghae-next %}
Linear | Linear OAuth Access Token | linear_oauth_access_token{% endif %}
{%- ifversion fpt or ghes > 3.1 or ghae-next %}
Lob | Lob Live API Key | lob_live_api_key{% endif %}
{%- ifversion fpt or ghes > 3.1 or ghae-next %}
Lob | Lob Test API Key | lob_test_api_key{% endif %}

View File

@@ -44,6 +44,8 @@ Hashicorp Terraform | Terraform Cloud / Enterprise API Token
Hubspot | Hubspot API Key
Ionic | Ionic Personal Access Token
Ionic | Ionic Refresh Token
Linear | Linear API Key
Linear | Linear OAuth Access Token
Mailchimp | Mailchimp API Key
Mailchimp | Mandrill API Key
Mailgun | Mailgun API Key

View File

@@ -103,8 +103,13 @@ export function sendEvent({ type, version = '1.0.0', ...props }: SendEventProps)
...props,
}
const blob = new Blob([JSON.stringify(body)], { type: 'application/json' })
navigator.sendBeacon('/events', blob)
// Only send the beacon if the feature is not disabled in the user's browser
if (navigator?.sendBeacon) {
const blob = new Blob([JSON.stringify(body)], { type: 'application/json' })
navigator.sendBeacon('/events', blob)
}
return body
}