@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.
@@ -2631,7 +2631,7 @@ _API_ready = new WeakMap(), _API_externalId = new WeakMap(), _API_conversationAu
2631
2631
  return {
2632
2632
  clientName: "@seamly/web-ui",
2633
2633
  clientVariant: api_classPrivateFieldGet(this, _API_layoutMode, "f"),
2634
- clientVersion: "22.3.3",
2634
+ clientVersion: "22.3.4",
2635
2635
  currentUrl: window.location.toString(),
2636
2636
  screenResolution: `${window.screen.width}x${window.screen.height}`,
2637
2637
  timezone: getTimeZone(),
@@ -17927,7 +17927,7 @@ const useNotification = () => {
17927
17927
  const [visibilityState, setVisibilityState] = (0,hooks_.useState)(document.visibilityState);
17928
17928
  const showNotifications = useSelector_useSelector(selectShowNotifications);
17929
17929
  const requestPermission = (0,hooks_.useCallback)(() => use_notifications_awaiter(void 0, void 0, void 0, function* () {
17930
- if (Notification && permission !== 'granted') {
17930
+ if (hasNotificationSupport && permission !== 'granted') {
17931
17931
  const notificationPermission = yield Notification.requestPermission();
17932
17932
  setPermission(notificationPermission);
17933
17933
  }