diff --git a/public/static/js/mapguesser.js b/public/static/js/mapguesser.js index 1b9c2f7..cc7198f 100644 --- a/public/static/js/mapguesser.js +++ b/public/static/js/mapguesser.js @@ -2,11 +2,12 @@ var MapGuesser = { httpRequest: function (method, url, callback, data) { var xhr = new XMLHttpRequest(); - xhr.responseType = 'json'; xhr.onload = callback; xhr.open(method, url, true); + xhr.responseType = 'json'; + if (method === 'POST') { if (typeof data === 'undefined') { data = new FormData();