~cytrogen/masto-fe

ab3f23da916c8578148fe92fe008da19b8a7ed02 — Nick Schonning 3 years ago cd14f71
SUBMIT doesn't exist on XMLHttpRequest (#24423)

1 files changed, 1 insertions(+), 1 deletions(-)

M app/javascript/mastodon/actions/markers.js
M app/javascript/mastodon/actions/markers.js => app/javascript/mastodon/actions/markers.js +1 -1
@@ 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
  }