sfc-utils 1.4.63 → 1.4.64

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sfc-utils",
3
- "version": "1.4.63",
3
+ "version": "1.4.64",
4
4
  "author": "ewagstaff <evanjwagstaff@gmail.com>",
5
5
  "dependencies": {
6
6
  "archieml": "^0.4.2",