wgt-node-utils 1.1.2 → 1.1.3
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/dist/bundle.js +1 -1
- package/package.json +1 -1
- package/src/index.js +2 -1
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -695,13 +695,14 @@ class wgtNodeUtils {
|
|
|
695
695
|
* @returns
|
|
696
696
|
*/
|
|
697
697
|
getPolicyAndContact = (url, hostname) => {
|
|
698
|
+
let self = this
|
|
698
699
|
return new Promise((resolve) => {
|
|
699
700
|
axios.get(url).then(res => {
|
|
700
701
|
let policyAndContact = res.data.data.properties;
|
|
701
702
|
if (!policyAndContact) {
|
|
702
703
|
policyAndContact = {
|
|
703
704
|
contact: '',
|
|
704
|
-
txt: setPolicyText(hostname, 'This Privacy Policy is effective [ Jan 5,], 2021 for all users.')
|
|
705
|
+
txt: self.setPolicyText(hostname, 'This Privacy Policy is effective [ Jan 5,], 2021 for all users.')
|
|
705
706
|
}
|
|
706
707
|
} else {
|
|
707
708
|
const { txt, title } = policyAndContact;
|