Fix incorrect `'navigator'` check (#32219)

pull/32165/head
Claire 4 months ago committed by GitHub
parent ebab3b80c7
commit 4a737a948a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -37,8 +37,7 @@ export const synchronouslySubmitMarkers = createAppAsyncThunk(
});
return;
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
} else if ('navigator' && 'sendBeacon' in navigator) {
} else if ('sendBeacon' in navigator) {
// Failing that, we can use sendBeacon, but we have to encode the data as
// FormData for DoorKeeper to recognize the token.
const formData = new FormData();

Loading…
Cancel
Save