mirror of
https://github.com/kikobar/mastodon.git
synced 2024-12-29 09:14:15 +00:00
SUBMIT doesn't exist on XMLHttpRequest (#24423)
This commit is contained in:
parent
cd14f712ad
commit
ab3f23da91
|
@ -55,7 +55,7 @@ export const synchronouslySubmitMarkers = () => (dispatch, getState) => {
|
||||||
client.open('POST', '/api/v1/markers', false);
|
client.open('POST', '/api/v1/markers', false);
|
||||||
client.setRequestHeader('Content-Type', 'application/json');
|
client.setRequestHeader('Content-Type', 'application/json');
|
||||||
client.setRequestHeader('Authorization', `Bearer ${accessToken}`);
|
client.setRequestHeader('Authorization', `Bearer ${accessToken}`);
|
||||||
client.SUBMIT(JSON.stringify(params));
|
client.send(JSON.stringify(params));
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
// Do not make the BeforeUnload handler error out
|
// Do not make the BeforeUnload handler error out
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue