@times-components/save-and-share-bar 0.22.7-alpha.2 → 0.22.7-alpha.6

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.
@@ -62,16 +62,16 @@ class EmailShare extends _react.Component {
62
62
  this.setState({
63
63
  isLoading: false
64
64
  });
65
- let tokenizedUrl = data.article.tokenisedUrl;
65
+ let tokenisedUrl = data.article.tokenisedUrl;
66
66
 
67
67
  if (data.article.categoryPath) {
68
68
  const _URL = new URL(data.article.tokenisedUrl),
69
69
  token = _URL.search;
70
70
 
71
- tokenizedUrl = "".concat(hostName).concat(data.article.categoryPath).concat(token);
71
+ tokenisedUrl = "".concat(hostName).concat(data.article.categoryPath).concat(token);
72
72
  }
73
73
 
74
- this.openMailClient((0, _utils.getDomainSpecificUrl)(hostName, tokenizedUrl));
74
+ this.openMailClient((0, _utils.getDomainSpecificUrl)(hostName, tokenisedUrl));
75
75
  }
76
76
  }).catch(() => {
77
77
  this.setState({
@@ -79,8 +79,7 @@ class EmailShare extends _react.Component {
79
79
  });
80
80
  });
81
81
  } else {
82
- const matches = window.location.search.match(/[?&]shareToken=([^&]+)/); // eslint-disable-next-line no-console
83
-
82
+ const matches = window.location.search.match(/[?&]shareToken=([^&]+)/);
84
83
  this.openMailClient(matches ? "".concat(articleUrl, "?shareToken=").concat(matches[1]) : articleUrl);
85
84
  }
86
85
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@times-components/save-and-share-bar",
3
- "version": "0.22.7-alpha.2+fd5e9aefbb",
3
+ "version": "0.22.7-alpha.6+cf82259e28",
4
4
  "description": "Save and Share bar ",
5
5
  "main": "dist/save-and-share-bar",
6
6
  "dev": "src/save-and-share-bar",
@@ -73,5 +73,5 @@
73
73
  "publishConfig": {
74
74
  "access": "public"
75
75
  },
76
- "gitHead": "fd5e9aefbb0434500276d28247e305d72426fdb7"
76
+ "gitHead": "cf82259e280cb746d5c4df4e4ca02feb906a956f"
77
77
  }