sfc-utils 1.4.134 → 1.4.136

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,6 +4,13 @@ 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
+ }
13
+ // Fallback handling for domain
7
14
  domain = domain.replace("https://www.", "").replace(".com", "");
8
15
  domainString = `
9
16
  var treg = treg || {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sfc-utils",
3
- "version": "1.4.134",
3
+ "version": "1.4.136",
4
4
  "author": "ewagstaff <evanjwagstaff@gmail.com>",
5
5
  "dependencies": {
6
6
  "archieml": "^0.4.2",