js: Fix XHR loading of URLs in case window.FormData is not supported
refs #8758
This commit is contained in:
parent
cecd94be50
commit
0f2351ff1d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue