use addEvent instead of window.plausible

This commit is contained in:
Abi Raja 2023-12-10 16:32:26 -05:00
parent af8fb1b9bb
commit adbc459347

View File

@ -216,14 +216,14 @@ function App() {
toast.error( toast.error(
"No current version set. Contact support or open a Github issue." "No current version set. Contact support or open a Github issue."
); );
window.plausible("CurrentVersionNull"); addEvent("CurrentVersionNull");
return; return;
} }
let historyTree; let historyTree;
try { try {
historyTree = extractHistoryTree(appHistory, currentVersion); historyTree = extractHistoryTree(appHistory, currentVersion);
window.plausible("HistoryTreeFailed"); addEvent("HistoryTreeFailed");
} catch { } catch {
toast.error( toast.error(
"Version history is invalid. This shouldn't happen. Please contact support or open a Github issue." "Version history is invalid. This shouldn't happen. Please contact support or open a Github issue."