From 70cd5c063040aab01e1a34a480f72b94708db659 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Mon, 6 Jan 2020 15:11:04 +0100 Subject: [PATCH] Ignore empty XMLHttpRequests aborted by the browser in production environments Fixes #3127 --- wcfsetup/install/files/js/WoltLabSuite/Core/Ajax/Request.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Ajax/Request.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Ajax/Request.js index 450c5a8b89..abad59647b 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Ajax/Request.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Ajax/Request.js @@ -333,7 +333,7 @@ define(['Core', 'Language', 'Dom/ChangeListener', 'Dom/Util', 'Ui/Dialog', 'Wolt } if (!message || message === 'undefined') { - if (!ENABLE_DEBUG_MODE && !ENABLE_PRODUCTION_DEBUG_MODE) return null; + if (!ENABLE_DEBUG_MODE) return null; message = 'XMLHttpRequest failed without a responseText. Check your browser console.' } -- 2.20.1