mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-26 12:31:36 +01:00
[Glitch] SUBMIT doesn't exist on XMLHttpRequest
Port ab3f23da91
to glitch-soc
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
parent
0f62451424
commit
358e4067bb
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue