From 0f2351ff1db67ba4f97a60234a437a9dded20b16 Mon Sep 17 00:00:00 2001 From: Johannes Meyer <johannes.meyer@netways.de> Date: Wed, 22 Jul 2015 13:29:44 +0200 Subject: [PATCH] js: Fix XHR loading of URLs in case window.FormData is not supported refs #8758 --- public/js/icinga/loader.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/js/icinga/loader.js b/public/js/icinga/loader.js index 232ecbc7e..da23ebea8 100644 --- a/public/js/icinga/loader.js +++ b/public/js/icinga/loader.js @@ -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