mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-09-11 00:57:01 +08:00
chore: remove analytics logging
This commit is contained in:
parent
93bcd3ca92
commit
bbd5cf2ba6
4 changed files with 1 additions and 8 deletions
|
@ -7,7 +7,6 @@ import {
|
|||
} from "./config-validation";
|
||||
import * as ConfigEvent from "./observables/config-event";
|
||||
import { isAuthenticated } from "./firebase";
|
||||
import * as AnalyticsController from "./controllers/analytics-controller";
|
||||
import * as AccountButton from "./elements/account-button";
|
||||
import { debounce } from "throttle-debounce";
|
||||
import {
|
||||
|
@ -1565,7 +1564,6 @@ export function setLanguage(language: Language, nosave?: boolean): boolean {
|
|||
if (!isConfigValueValid("language", language, LanguageSchema)) return false;
|
||||
|
||||
config.language = language;
|
||||
void AnalyticsController.log("changedLanguage", { language });
|
||||
saveToLocalStorage("language", nosave);
|
||||
ConfigEvent.dispatch("language", config.language);
|
||||
|
||||
|
|
|
@ -10,7 +10,6 @@ import * as ConfigEvent from "../observables/config-event";
|
|||
import * as DB from "../db";
|
||||
import * as Notifications from "../elements/notifications";
|
||||
import * as Loader from "../elements/loader";
|
||||
import * as AnalyticsController from "../controllers/analytics-controller";
|
||||
import { debounce } from "throttle-debounce";
|
||||
import { tryCatch } from "@monkeytype/util/trycatch";
|
||||
|
||||
|
@ -173,7 +172,6 @@ async function apply(
|
|||
}
|
||||
}
|
||||
|
||||
void AnalyticsController.log("changedTheme", { theme: name });
|
||||
// if (!isPreview) {
|
||||
const colors = await ThemeColors.getAll();
|
||||
$(".keymapKey").attr("style", "");
|
||||
|
|
|
@ -56,8 +56,4 @@ window.onunhandledrejection = function (e): void {
|
|||
});
|
||||
console.error(e);
|
||||
}
|
||||
void log("error", {
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
||||
error: (e.reason?.stack ?? "") as string,
|
||||
});
|
||||
};
|
||||
|
|
|
@ -42,6 +42,7 @@ export function init(): void {
|
|||
*/
|
||||
"NotFoundError: Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node.",
|
||||
"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.",
|
||||
"Error: There is no clipping info for given tab",
|
||||
],
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue