Fix the reference to `setTimeout()`
authorAlexander Ebert <ebert@woltlab.com>
Thu, 14 Sep 2023 09:59:01 +0000 (11:59 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Thu, 14 Sep 2023 09:59:01 +0000 (11:59 +0200)
ts/WoltLabSuite/Core/Ui/Notification.ts
wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Notification.js

index c61f9913ffcf8b846db21478b3c595d2bc89d359..a35c636fc7baa9f10093c4770f38e901612a9e6b 100644 (file)
@@ -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);
 }
index bbce221e9064a4191ac1c03f5832bb7db648e7d2..8b1f9ab78725627ce4f4e35715a80437b2e11f34 100644 (file)
@@ -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;
 });