sfc-utils 1.4.205 → 1.4.207
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,6 +1,13 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
|
|
3
|
-
const
|
|
3
|
+
const newRelicBrowserConfig = `
|
|
4
|
+
;window.NREUM||(NREUM={});NREUM.init={distributed_tracing:{enabled:true},performance:{capture_measures:true},browser_consent_mode:{enabled:false},privacy:{cookies_enabled:true},ajax:{deny_list:["bam.nr-data.net"],capture_payloads:'none'}};
|
|
5
|
+
|
|
6
|
+
;NREUM.loader_config={accountID:"3540744",trustKey:"41019",agentID:"626880230",licenseKey:"NRJS-bef5859a29fb3c538c2",applicationID:"626880230"};
|
|
7
|
+
;NREUM.info={beacon:"bam.nr-data.net",errorBeacon:"bam.nr-data.net",licenseKey:"NRJS-bef5859a29fb3c538c2",applicationID:"626880230",sa:1};
|
|
8
|
+
`;
|
|
9
|
+
|
|
10
|
+
const LayoutScript = ({ domain, marketingVer = 1 }) => {
|
|
4
11
|
let domainString = "";
|
|
5
12
|
// Check if domain is string
|
|
6
13
|
if (domain && typeof domain === "string") {
|
|
@@ -16,16 +23,27 @@ const LayoutScript = ({ domain, newMarketing = false }) => {
|
|
|
16
23
|
}
|
|
17
24
|
return (
|
|
18
25
|
<>
|
|
19
|
-
{
|
|
20
|
-
|
|
26
|
+
{marketingVer === 2 && (
|
|
27
|
+
<>
|
|
28
|
+
<script src="https://d29h410fx4s4sw.cloudfront.net/marketing/marketing.umd.min.js"></script>
|
|
29
|
+
<script
|
|
30
|
+
type="text/javascript"
|
|
31
|
+
dangerouslySetInnerHTML={{ __html: newRelicBrowserConfig }}
|
|
32
|
+
/>
|
|
33
|
+
<script
|
|
34
|
+
type="text/javascript"
|
|
35
|
+
src="https://js-agent.newrelic.com/nr-loader-spa-1.313.1.min.js"
|
|
36
|
+
crossOrigin="anonymous"
|
|
37
|
+
/>
|
|
38
|
+
</>
|
|
21
39
|
)}
|
|
22
40
|
{domainString && (
|
|
23
41
|
<script dangerouslySetInnerHTML={{ __html: domainString }}></script>
|
|
24
42
|
)}
|
|
25
|
-
{
|
|
43
|
+
{marketingVer === 1 && (
|
|
26
44
|
<script src="https://projects.sfchronicle.com/shared/js/jquery.min.js"></script>
|
|
27
45
|
)}
|
|
28
|
-
{
|
|
46
|
+
{marketingVer === 1 && (
|
|
29
47
|
<script src="https://treg.hearstnp.com/treg.js"></script>
|
|
30
48
|
)}
|
|
31
49
|
</>
|