@hellotext/hellotext 1.0.1 → 1.0.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/README.md CHANGED
@@ -1,4 +1,6 @@
1
- # Hellotext
1
+ # Hellotext.js
2
+
3
+ [![npm version](https://badge.fury.io/js/@hellotext%2Fhellotext.svg)](https://badge.fury.io/js/@hellotext%2Fhellotext)
2
4
 
3
5
  Track the events happening on your site to [Hellotext](https://www.hellotext.com) in real-time with this library.
4
6
 
@@ -21,7 +23,7 @@ yarn add @hellotext/hellotext
21
23
  Import the library into your app.
22
24
 
23
25
  ```javascript
24
- import Hellotext from "hellotext";
26
+ import Hellotext from "@hellotext/hellotext";
25
27
  ```
26
28
 
27
29
  Initialize the library passing the public `HELLOTEXT_BUSINESS_ID` identifier that represents the business.
package/lib/hellotext.js CHANGED
@@ -10,7 +10,7 @@ class Hellotext {
10
10
  this.business_id = business_id
11
11
 
12
12
  const urlSearchParams = new URLSearchParams(window.location.search)
13
- const session = urlSearchParams.get('hello_session_id') || getCookieValue('hello_session_id')
13
+ const session = urlSearchParams.get('hello_session') || getCookieValue('hello_session')
14
14
 
15
15
  if (session) {
16
16
  this._session = session
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hellotext/hellotext",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "Hellotext javascript client",
5
5
  "main": "index.js",
6
6
  "author": "Hellotext",