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, we need to set the domain on client
8
- try {
9
- domain = window.location.href.match(/https:\/\/www\.(.*?)\.com/)[1];
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 = `
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sfc-utils",
3
- "version": "1.4.136",
3
+ "version": "1.4.137",
4
4
  "author": "ewagstaff <evanjwagstaff@gmail.com>",
5
5
  "dependencies": {
6
6
  "archieml": "^0.4.2",