Temp fix for disabling Sentry

This commit is contained in:
Nuckyz 2024-06-27 23:58:01 -03:00
parent cbc7f7230a
commit 96873ccef7
No known key found for this signature in database
GPG key ID: 440BF8296E1C4AD9

View file

@ -20,6 +20,12 @@ import { definePluginSettings } from "@api/Settings";
import { Devs } from "@utils/constants"; import { Devs } from "@utils/constants";
import definePlugin, { OptionType } from "@utils/types"; import definePlugin, { OptionType } from "@utils/types";
// FIXME Do this without monkey patching maybe
Object.defineProperty(window, "DiscordSentry", {
configurable: true,
set(v) { }
});
const settings = definePluginSettings({ const settings = definePluginSettings({
disableAnalytics: { disableAnalytics: {
type: OptionType.BOOLEAN, type: OptionType.BOOLEAN,