sfc-utils 1.3.37 → 1.3.40

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.
package/accountswap.js CHANGED
@@ -12,8 +12,8 @@ const pollForAccount = function(i){
12
12
  if (window && window.treg && window.treg.identity && window.treg.identity.id){
13
13
  // We got a valid entitlement! Let's see if the button exists and swap our new one in
14
14
  const subButton = document.querySelector('#nav2-sub-box')
15
- const subButtonText = subButton.querySelector('div')
16
- if (subButton){
15
+ const subButtonText = document.querySelector('#nav2-sub-box div')
16
+ if (subButton && subButtonText){
17
17
  subButton.setAttribute("href", accountURL)
18
18
  subButtonText.innerText = "Account"
19
19
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sfc-utils",
3
- "version": "1.3.37",
3
+ "version": "1.3.40",
4
4
  "author": "ewagstaff <evanjwagstaff@gmail.com>",
5
5
  "dependencies": {
6
6
  "archieml": "^0.4.2",
package/settings.js CHANGED
@@ -52,6 +52,10 @@ let getSettings = function(){
52
52
  // Evan: This hack has my approval
53
53
  }
54
54
  }
55
+ // Empty array is triggering truthy test, so let's nullify
56
+ if (fullAuthors.length === 0){
57
+ fullAuthors = null
58
+ }
55
59
  // Populate with sheet settings
56
60
  settings = {
57
61
  "PAYWALL_SETTING": storySettings.Paywall,