js: Fix XHR loading of URLs in case window.FormData is not supported

refs #8758
This commit is contained in:
Johannes Meyer 2015-07-22 13:29:44 +02:00
parent cecd94be50
commit 0f2351ff1d
1 changed files with 1 additions and 1 deletions

View File

@ -103,7 +103,7 @@
// This is jQuery's default content type
var contentType = 'application/x-www-form-urlencoded; charset=UTF-8';
var isFormData = data instanceof window.FormData;
var isFormData = typeof window.FormData !== 'undefined' && data instanceof window.FormData;
if (isFormData) {
// Setting false is mandatory as the form's data
// won't be recognized by the server otherwise