sfc-utils 1.4.63 → 1.4.65

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.
@@ -16,9 +16,11 @@ const Byline = ({ meta, updateNote, updatePrefix, ReplacementTime }) => {
16
16
  // check the width of the byline wrapper. if it's less than @md or 672px,
17
17
  // change the display type to "block" to avoid large white spaces with
18
18
  // the gift button
19
- let bylineContainer = document.getElementById("byline-wrapper")
20
- if (bylineContainer && bylineContainer.offsetWidth < 672) {
21
- bylineContainer.style.display = "block"
19
+ if (typeof window !== "undefined" && typeof document !== "undefined") {
20
+ let bylineContainer = document.getElementById("byline-wrapper")
21
+ if (bylineContainer && bylineContainer.offsetWidth < 672) {
22
+ bylineContainer.style.display = "block"
23
+ }
22
24
  }
23
25
 
24
26
  return (
package/index.js CHANGED
@@ -126,7 +126,6 @@ let blendHDN = function (meta) {
126
126
  HDN.dataLayer.content.keyNlpConsumerGood = [];
127
127
  HDN.dataLayer.content.keyNlpOther = [];
128
128
  HDN.dataLayer.content.keyNlpUnknown = [];
129
- HDN.dataLayer.content.designTemplate = "devhub-sandbox";
130
129
 
131
130
  // Signal to Blueconic that we are ready for gift button
132
131
  HDN.dataLayer.content.giftEnabled = meta.GIFT_ENABLED;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sfc-utils",
3
- "version": "1.4.63",
3
+ "version": "1.4.65",
4
4
  "author": "ewagstaff <evanjwagstaff@gmail.com>",
5
5
  "dependencies": {
6
6
  "archieml": "^0.4.2",
@@ -14,4 +14,4 @@
14
14
  "react-transition-group": "^4.4.5",
15
15
  "write": "^2.0.0"
16
16
  }
17
- }
17
+ }