diff options
author | Nick Schonning <nschonni@gmail.com> | 2023-04-05 04:56:55 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-05 10:56:55 +0200 |
commit | ab3f23da916c8578148fe92fe008da19b8a7ed02 (patch) | |
tree | 5fe3bba169ca34af3fad559f9ab70d9e414bfb47 /app | |
parent | cd14f712ad9f5a6ebdbec8c9b87740cd76d949e7 (diff) |
SUBMIT doesn't exist on XMLHttpRequest (#24423)
Diffstat (limited to 'app')
-rw-r--r-- | app/javascript/mastodon/actions/markers.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/mastodon/actions/markers.js b/app/javascript/mastodon/actions/markers.js index 16ec7fe77..ca246dce7 100644 --- a/app/javascript/mastodon/actions/markers.js +++ b/app/javascript/mastodon/actions/markers.js @@ -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 } |