PluginProbe
Extendify / 3.2.3
Extendify v3.2.3
3.2.3 3.2.2 3.2.1 3.2.0 3.1.6 3.1.5 3.1.4 3.1.3 3.1.2 3.1.1 3.1.0 3.0.6 3.0.5 3.0.4 trunk 0.1.0 0.10.0 0.10.1 0.10.2 0.11.0 0.11.1 0.2.0 0.3.0 0.3.1 0.4.0 All 129 releases
← All changes | src/Notifications/notification-link.js +0 -8 3.1.5 → 3.2.3 View file →
@@ -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 {