contactstudiocstools 1.0.224 → 1.0.225

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/module.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@contactstudio/cstools",
3
3
  "configKey": "CSTools",
4
- "version": "1.0.224"
4
+ "version": "1.0.225"
5
5
  }
@@ -6,6 +6,7 @@
6
6
  import { onMounted } from "vue";
7
7
  import { logout } from "./types";
8
8
  import { useNuxtApp, useRuntimeConfig } from "#app";
9
+ import { getCookie } from "typescript-cookie";
9
10
 
10
11
  // data
11
12
  const { $emit } = useNuxtApp();
@@ -14,7 +15,9 @@ const { BASE_URL } = useRuntimeConfig().public;
14
15
  // methods
15
16
  function initSnapshot(): void {
16
17
  const snapshot = new Worker(`${BASE_URL}/snapshot.js`);
17
- snapshot.postMessage("");
18
+ const cssession = getCookie("cssession")
19
+
20
+ snapshot.postMessage(cssession || "");
18
21
  snapshot.onmessage = ({ data }) => {
19
22
  if (data.error) {
20
23
  logout();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "contactstudiocstools",
3
- "version": "1.0.224",
3
+ "version": "1.0.225",
4
4
  "description": "Nuxt Tools Module for ContactStudio",
5
5
  "type": "module",
6
6
  "exports": {