sfc-utils 1.3.43 → 1.3.45
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/index.js +5 -1
- package/package.json +1 -1
- package/topper.js +1 -1
package/index.js
CHANGED
|
@@ -13,8 +13,12 @@ let appCheck = function(){
|
|
|
13
13
|
// If we can access window, check to see if we're dealing with app version
|
|
14
14
|
if (typeof window !== "undefined"){
|
|
15
15
|
// Any link with ?fromRichie=1 will have paywall disabled
|
|
16
|
+
// Also hdnEmployeeAccess is the new free param
|
|
16
17
|
// Native in-app webviews will have a custom user agent, so check that too
|
|
17
|
-
if (
|
|
18
|
+
if (
|
|
19
|
+
window.location.href.indexOf('fromRichie=1') > -1 ||
|
|
20
|
+
window.location.href.indexOf('hdnEmployeeAccess=true') > -1 ||
|
|
21
|
+
navigator.userAgent.indexOf(' Richie/') > -1) {
|
|
18
22
|
appVersion = true
|
|
19
23
|
}
|
|
20
24
|
}
|
package/package.json
CHANGED
package/topper.js
CHANGED
|
@@ -838,7 +838,7 @@ let getTopper = function(settings){
|
|
|
838
838
|
<h1 class="topper-article-hed">${storySettings.Title}</h1>
|
|
839
839
|
<h2 class="topper-article-dek">${storySettings.Deck}</h2>
|
|
840
840
|
<h3 class ="topper-article-byline">${getBylineText(articleAuthorName, articleAuthorLink, readablePubDate, readableModDate)}</h3>
|
|
841
|
-
<div class="share-list" id="sharebutton-wrapper"></div>
|
|
841
|
+
<div class="articleHeader--shareTools"><div class="share-list" id="sharebutton-wrapper"></div></div>
|
|
842
842
|
</div>
|
|
843
843
|
</div>
|
|
844
844
|
`
|