From 22958fde71026f77847159834753c14b2260091b Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Tue, 30 May 2017 18:37:41 +0200 Subject: [PATCH] Safari does not support Promise-based return type See #2279 --- .../install/files/js/WoltLabSuite/Core/Notification/Handler.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Notification/Handler.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Notification/Handler.js index a14482305f..3dac53a888 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Notification/Handler.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Notification/Handler.js @@ -52,7 +52,7 @@ define(['Ajax', 'Core', 'EventHandler'], function(Ajax, Core, EventHandler) { this._onVisibilityChange(); if (options.enableNotifications) { - window.Notification.requestPermission().then(function (result) { + window.Notification.requestPermission(function (result) { if (result === 'granted') { _allowNotification = true; } -- 2.20.1