Skip to content

Commit

Permalink
SUBMIT doesn't exist on XMLHttpRequest (#24423)
Browse files Browse the repository at this point in the history
  • Loading branch information
nschonni committed Apr 5, 2023
1 parent cd14f71 commit ab3f23d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/javascript/mastodon/actions/markers.js
Expand Up @@ -55,7 +55,7 @@ export const synchronouslySubmitMarkers = () => (dispatch, getState) => {
client.open('POST', '/api/v1/markers', false);
client.setRequestHeader('Content-Type', 'application/json');
client.setRequestHeader('Authorization', `Bearer ${accessToken}`);
client.SUBMIT(JSON.stringify(params));
client.send(JSON.stringify(params));
} catch (e) {
// Do not make the BeforeUnload handler error out
}
Expand Down

0 comments on commit ab3f23d

Please sign in to comment.