From 177e794fc9e8e7c60ca82b8dbe0d25b308db72bb Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Mon, 29 May 2023 14:48:48 +0200 Subject: [PATCH] Suppress error messages when fetching previews See https://www.woltlab.com/community/thread/299874-suppress-errors-if-requests-for-the-popover-fail/ --- ts/WoltLabSuite/Core/Controller/Popover.ts | 1 + .../install/files/js/WoltLabSuite/Core/Controller/Popover.js | 1 + 2 files changed, 2 insertions(+) diff --git a/ts/WoltLabSuite/Core/Controller/Popover.ts b/ts/WoltLabSuite/Core/Controller/Popover.ts index 340bd0e748..7a20165e9f 100644 --- a/ts/WoltLabSuite/Core/Controller/Popover.ts +++ b/ts/WoltLabSuite/Core/Controller/Popover.ts @@ -426,6 +426,7 @@ class ControllerPopover implements AjaxCallbackObject { _ajaxSetup(): ReturnType { return { + ignoreError: true, silent: true, }; } diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Controller/Popover.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Controller/Popover.js index f35e7d832d..4b9df5d1cc 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Controller/Popover.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Controller/Popover.js @@ -316,6 +316,7 @@ define(["require", "exports", "tslib", "../Ajax", "../Dom/Change/Listener", "../ } _ajaxSetup() { return { + ignoreError: true, silent: true, }; } -- 2.20.1