Suppress error messages when fetching previews
authorAlexander Ebert <ebert@woltlab.com>
Mon, 29 May 2023 12:48:48 +0000 (14:48 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Mon, 29 May 2023 12:48:48 +0000 (14:48 +0200)
See https://www.woltlab.com/community/thread/299874-suppress-errors-if-requests-for-the-popover-fail/

ts/WoltLabSuite/Core/Controller/Popover.ts
wcfsetup/install/files/js/WoltLabSuite/Core/Controller/Popover.js

index 340bd0e74833a5e71d087b56b7e60af199271010..7a20165e9f62362014916f232f80ab5dcfefdd15 100644 (file)
@@ -426,6 +426,7 @@ class ControllerPopover implements AjaxCallbackObject {
 
   _ajaxSetup(): ReturnType<AjaxCallbackSetup> {
     return {
+      ignoreError: true,
       silent: true,
     };
   }
index f35e7d832d401575e083c37f7d261a9297ce010c..4b9df5d1ccccce282548535efb0129c0b1046d9e 100644 (file)
@@ -316,6 +316,7 @@ define(["require", "exports", "tslib", "../Ajax", "../Dom/Change/Listener", "../
         }
         _ajaxSetup() {
             return {
+                ignoreError: true,
                 silent: true,
             };
         }