Add Crisp Chat Tracking for users.
This commit is contained in:
@@ -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]]],
|
||||
]);
|
||||
}
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user