From 3079b29b88714431265b4cdb116ed5608aa89e01 Mon Sep 17 00:00:00 2001 From: cryptofyre Date: Fri, 17 Dec 2021 13:46:23 -0600 Subject: [PATCH] Add base Cider analytics. --- index.js | 4 ++++ resources/functions/cider-base.js | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/index.js b/index.js index 09bb8d48..6d1faf6d 100644 --- a/index.js +++ b/index.js @@ -1,6 +1,10 @@ require('v8-compile-cache'); const {app} = require('electron'); +// Analytics for debugging. +const ElectronSentry = require("@sentry/electron"); +ElectronSentry.init({dsn: "https://68c422bfaaf44dea880b86aad5a820d2@o954055.ingest.sentry.io/6112214"}); + // Creating the Application Window and Calling all the Functions function CreateWindow() { if (app.isQuiting) { app.quit(); return; } diff --git a/resources/functions/cider-base.js b/resources/functions/cider-base.js index 2da5f175..786782c0 100644 --- a/resources/functions/cider-base.js +++ b/resources/functions/cider-base.js @@ -6,6 +6,10 @@ const path = require("path"); const windowStateKeeper = require("electron-window-state"); const os = require('os'); +// Analytics for debugging. +const ElectronSentry = require("@sentry/electron"); +ElectronSentry.init({dsn: "https://68c422bfaaf44dea880b86aad5a820d2@o954055.ingest.sentry.io/6112214"}); + const CiderBase = { CreateBrowserWindow() {