Fix incorrect 'navigator' check (#32219)

This commit is contained in:
Claire authored and GitHub committed 2024-10-02 10:03:04 +00:00
1 parent ebab3b80c7
commit 4a737a948a
1 file changed
+1 -2
+1 -2
View File
@@ -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();