@seamly/web-ui 22.3.3 → 22.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -16262,7 +16262,7 @@ const useNotification = () => {
16262
16262
  const [visibilityState, setVisibilityState] = (0,hooks_.useState)(document.visibilityState);
16263
16263
  const showNotifications = (0,es/* useSelector */.v9)(selectShowNotifications);
16264
16264
  const requestPermission = (0,hooks_.useCallback)(() => use_notifications_awaiter(void 0, void 0, void 0, function* () {
16265
- if (Notification && permission !== 'granted') {
16265
+ if (hasNotificationSupport && permission !== 'granted') {
16266
16266
  const notificationPermission = yield Notification.requestPermission();
16267
16267
  setPermission(notificationPermission);
16268
16268
  }