Add Crisp Chat Tracking for users.

This commit is contained in:
Patrick Fic
2023-10-19 14:42:29 -07:00
parent fd989bf7e4
commit a42c2d68ca
7 changed files with 32 additions and 9 deletions

View File

@@ -7,10 +7,10 @@ import {
setWatchedPaths,
setWatcherStatus,
} from "../redux/application/application.actions";
import { store } from "../redux/store";
import { GetR4PDateWithClaim, UpsertEstimate } from "./ipc-estimate-utils";
import { setScanEstimateList } from "../redux/scan/scan.actions";
import { store } from "../redux/store";
import { signOutStart } from "../redux/user/user.actions";
import { GetR4PDateWithClaim, UpsertEstimate } from "./ipc-estimate-utils";
const { ipcRenderer } = window;
console.log("----Initializing IPC Listeners in React App.");
@@ -100,3 +100,14 @@ ipcRenderer.on(
store.dispatch(setReleaseNotes(releaseNotes));
}
);
ipcRenderer.on(
ipcTypes.default.app.toRenderer.appVersion,
async (event, appversion) => {
window.$crisp.push([
"set",
"session:data",
[[["rps-version", appversion]]],
]);
}
);