sfc-utils 1.4.136 → 1.4.137
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.
|
@@ -4,12 +4,9 @@ const LayoutScript = ({ domain }) => {
|
|
|
4
4
|
let domainString = "";
|
|
5
5
|
// Check if domain is string
|
|
6
6
|
if (domain && typeof domain === "string") {
|
|
7
|
-
// To handle multi-site publishing
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
} catch (err) {
|
|
11
|
-
// It's ok
|
|
12
|
-
}
|
|
7
|
+
// To handle multi-site publishing:
|
|
8
|
+
// Cut off after .com
|
|
9
|
+
domain = domain.substring(0, domain.indexOf(".com") + 4);
|
|
13
10
|
// Fallback handling for domain
|
|
14
11
|
domain = domain.replace("https://www.", "").replace(".com", "");
|
|
15
12
|
domainString = `
|