sfc-utils 1.3.44 → 1.3.46
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/copy/c2p_sheet.js +1 -1
- package/index.js +5 -1
- package/package.json +1 -1
package/copy/c2p_sheet.js
CHANGED
|
@@ -71,7 +71,7 @@ let createSheet = (auth, fallback, configData) => {
|
|
|
71
71
|
//'copyCollaborators': true // This doesn't work unfortunately
|
|
72
72
|
},
|
|
73
73
|
(err, resp) => {
|
|
74
|
-
console.log(resp);
|
|
74
|
+
console.log("SHEET RESP", resp);
|
|
75
75
|
// Make edits to the sheet to match the repo details
|
|
76
76
|
let resources = {
|
|
77
77
|
auth: auth,
|
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
|
}
|