Ignore empty XMLHttpRequests aborted by the browser in production environments
authorAlexander Ebert <ebert@woltlab.com>
Mon, 6 Jan 2020 14:11:04 +0000 (15:11 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Mon, 6 Jan 2020 14:11:04 +0000 (15:11 +0100)
Fixes #3127

wcfsetup/install/files/js/WoltLabSuite/Core/Ajax/Request.js

index 450c5a8b89d49367c95bc37730ac86067bd13dc0..abad59647bd089aee555b9b9e15b0eba428e2da0 100644 (file)
@@ -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.'
                        }