[Glitch] Fix incorrect `'navigator'` check

Port 931553844d to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
pull/2865/head
Claire 2024-10-02 12:03:04 +02:00
parent e58d99a771
commit 3cad5095c9
1 changed files with 1 additions and 2 deletions

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();