Skip to content

Commit bbd5cf2

Browse files
committed
chore: remove analytics logging
1 parent 93bcd3c commit bbd5cf2

File tree

4 files changed

+1
-8
lines changed

4 files changed

+1
-8
lines changed

frontend/src/ts/config.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import {
77
} from "./config-validation";
88
import * as ConfigEvent from "./observables/config-event";
99
import { isAuthenticated } from "./firebase";
10-
import * as AnalyticsController from "./controllers/analytics-controller";
1110
import * as AccountButton from "./elements/account-button";
1211
import { debounce } from "throttle-debounce";
1312
import {
@@ -1565,7 +1564,6 @@ export function setLanguage(language: Language, nosave?: boolean): boolean {
15651564
if (!isConfigValueValid("language", language, LanguageSchema)) return false;
15661565

15671566
config.language = language;
1568-
void AnalyticsController.log("changedLanguage", { language });
15691567
saveToLocalStorage("language", nosave);
15701568
ConfigEvent.dispatch("language", config.language);
15711569

frontend/src/ts/controllers/theme-controller.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import * as ConfigEvent from "../observables/config-event";
1010
import * as DB from "../db";
1111
import * as Notifications from "../elements/notifications";
1212
import * as Loader from "../elements/loader";
13-
import * as AnalyticsController from "../controllers/analytics-controller";
1413
import { debounce } from "throttle-debounce";
1514
import { tryCatch } from "@monkeytype/util/trycatch";
1615

@@ -173,7 +172,6 @@ async function apply(
173172
}
174173
}
175174

176-
void AnalyticsController.log("changedTheme", { theme: name });
177175
// if (!isPreview) {
178176
const colors = await ThemeColors.getAll();
179177
$(".keymapKey").attr("style", "");

frontend/src/ts/event-handlers/global.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,4 @@ window.onunhandledrejection = function (e): void {
5656
});
5757
console.error(e);
5858
}
59-
void log("error", {
60-
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
61-
error: (e.reason?.stack ?? "") as string,
62-
});
6359
};

frontend/src/ts/sentry.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ export function init(): void {
4242
*/
4343
"NotFoundError: Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node.",
4444
"NotFoundError: Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node.",
45+
"Error: There is no clipping info for given tab",
4546
],
4647
});
4748
}

0 commit comments

Comments
 (0)