sfc-utils 1.4.96 → 1.4.97

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.
@@ -1,12 +1,23 @@
1
- import React from 'react'
1
+ import React from "react";
2
2
 
3
- const LayoutScript = () => {
3
+ const LayoutScript = (domain) => {
4
+ let domainString = "";
5
+ if (domain) {
6
+ domain = domain.replace(".com", "");
7
+ domainString = `
8
+ var treg = treg || {};
9
+ treg.url_override="realm.${domain}.noux.com";
10
+ `;
11
+ }
4
12
  return (
5
13
  <>
6
14
  <script src="https://projects.sfchronicle.com/shared/js/jquery.min.js"></script>
15
+ {domainString && (
16
+ <script dangerouslySetInnerHTML={{ __html: domainString }}></script>
17
+ )}
7
18
  <script src="https://treg.hearstnp.com/treg.js"></script>
8
19
  </>
9
- )
10
- }
20
+ );
21
+ };
11
22
 
12
- export default LayoutScript
23
+ export default LayoutScript;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sfc-utils",
3
- "version": "1.4.96",
3
+ "version": "1.4.97",
4
4
  "author": "ewagstaff <evanjwagstaff@gmail.com>",
5
5
  "dependencies": {
6
6
  "archieml": "^0.4.2",