Added support chat and sentry ignore messages.

This commit is contained in:
Patrick Fic
2023-10-13 11:29:18 -07:00
parent fc89c4429d
commit fd989bf7e4
9 changed files with 57 additions and 9 deletions

View File

@@ -128,5 +128,10 @@
"title": "Release Notes for 1.1.5",
"date": "08/23/2023",
"notes": "Bug Fixes:\r\n- Performance improvements."
},
"1.1.6": {
"title": "Release Notes for 1.1.6",
"date": "10/13/2023",
"notes": "New Feature:\r\n- Added live support chat."
}
}

View File

@@ -37,7 +37,7 @@ function WhichRulesetToApply(close_date) {
(r) =>
DateMoment.isSameOrAfter(r.range[0]) && DateMoment.isBefore(r.range[1])
);
console.log("Using ruleset:", newRuleSet);
//console.log("Using ruleset:", newRuleSet);
return newRuleSet?.title;
}

View File

@@ -63,7 +63,7 @@ ipcMain.on(
);
const newFilePaths = store.get("filePaths");
console.log("newFilePaths", newFilePaths);
//console.log("newFilePaths", newFilePaths);
event.sender.send(
ipcTypes.default.fileWatcher.toRenderer.filepathsList,

View File

@@ -70,8 +70,13 @@ async function StartWatcher() {
.on("error", function (error) {
log.error("Error in Watcher", error);
const b = BrowserWindow.getFocusedWindow();
b.webContents.send(ipcTypes.default.fileWatcher.toRenderer.error, error);
// Nucleus.track("WATCHER_ERROR", error);
if (b) {
b.webContents.send(
ipcTypes.default.fileWatcher.toRenderer.error,
error
);
}
// Nucleus.track("WATCHER_ERROR", error);
})
.on("ready", onWatcherReady)
.on("raw", function (event, path, details) {
@@ -111,6 +116,6 @@ exports.StopWatcher = StopWatcher;
exports.watcher = watcher;
async function HandleNewFile(path) {
// Nucleus.track("IMPORT_JOB_FROM_WATCHER");
// Nucleus.track("IMPORT_JOB_FROM_WATCHER");
await ImportJob(path);
}

View File

@@ -16,7 +16,6 @@ const { autoUpdater } = require("electron-updater");
const log = require("electron-log");
const contextMenu = require("electron-context-menu");
const Sentry = require("@sentry/electron");
const { set } = require("lodash");
//const Nucleus = require("nucleus-nodejs");
require("./ipc-main-handler");
@@ -24,6 +23,11 @@ require("./analytics");
Sentry.init({
dsn: "https://9840e0f304124299e379d9347e12d2e6@o492140.ingest.sentry.io/4505728058523648",
ignoreErrors: [
"SimpleURLLoaderWrapper",
"Cannot read properties of null (reading 'webContents')",
"EBUSY: resource busy or locked",
],
});
autoUpdater.autoDownload = true;