| @@ -1,15 +1,7 @@ | ||
| 1 | 1 | // A partner-authored link can't know the customer's host at authoring time. |
| 2 | 2 | const withSiteHost = (link, host) => link?.replaceAll('{SITEURL}', host); |
| 3 | 3 | |
| 4 | -export const siteHost = () => { | |
| 5 | - try { | |
| 6 | - return new URL(window.extSharedData?.homeUrl ?? '').host; | |
| 7 | - } catch { | |
| 8 | - return ''; | |
| 9 | - } | |
| 10 | -}; | |
| 11 | - | |
| 12 | 4 | export const resolveNotificationLink = (notification, host = '') => { |
| 13 | 5 | const href = withSiteHost(notification?.link, host); |
| 14 | 6 | if (!href) return {}; |
| 15 | 7 | try { |