Browse Source

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

dariusk-working/4_3_0
Claire 1 year ago
parent
commit
931553844d
  1. 3
      app/javascript/mastodon/actions/markers.ts

3
app/javascript/mastodon/actions/markers.ts

@ -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