mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-02-07 07:22:49 -05:00
[Glitch] Fix incorrect 'navigator'
check
Port 931553844d851b7209039cd35629ae22818476cf to glitch-soc Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
parent
e58d99a771
commit
3cad5095c9
@ -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…
x
Reference in New Issue
Block a user