From 76e4061cc5669cd13a87d2faf1a1a0749baf9b1a Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Thu, 14 Sep 2023 11:59:01 +0200 Subject: [PATCH] Fix the reference to `setTimeout()` --- ts/WoltLabSuite/Core/Ui/Notification.ts | 2 +- wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Notification.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ts/WoltLabSuite/Core/Ui/Notification.ts b/ts/WoltLabSuite/Core/Ui/Notification.ts index c61f9913ff..a35c636fc7 100644 --- a/ts/WoltLabSuite/Core/Ui/Notification.ts +++ b/ts/WoltLabSuite/Core/Ui/Notification.ts @@ -65,5 +65,5 @@ export function show(message?: string, callback?: Callback | null, cssClassName? _message.textContent = getPhrase(message || "wcf.global.success"); _notificationElement.classList.add("active"); - _timeout = setTimeout(hide, 2000); + _timeout = window.setTimeout(hide, 2000); } diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Notification.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Notification.js index bbce221e90..8b1f9ab787 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Notification.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Notification.js @@ -51,7 +51,7 @@ define(["require", "exports", "../Helper/PageOverlay", "../Language"], function _message.className = cssClassName || "success"; _message.textContent = (0, Language_1.getPhrase)(message || "wcf.global.success"); _notificationElement.classList.add("active"); - _timeout = setTimeout(hide, 2000); + _timeout = window.setTimeout(hide, 2000); } exports.show = show; }); -- 2.20.1