improve method for enabling notifications by default

This commit is contained in:
V
2023-12-28 04:19:56 +01:00
parent d71d0c1cc4
commit 7565eb39a4
3 changed files with 27 additions and 14 deletions

View File

@@ -0,0 +1,21 @@
/*
* SPDX-License-Identifier: GPL-3.0
* Vesktop, a desktop app aiming to give you a snappier Discord Experience
* Copyright (c) 2023 Vendicated and Vencord contributors
*/
import { addPatch } from "./shared";
addPatch({
patches: [
{
find: '"NotificationSettingsStore',
replacement: {
// FIXME: fix eslint rule
// eslint-disable-next-line no-useless-escape
match: /\.isPlatformEmbedded(?=\?\i\.DesktopNotificationTypes\.ALL)/g,
replace: "$&||true"
}
}
]
});

View File

@@ -5,7 +5,8 @@
*/
// TODO: Possibly auto generate glob if we have more patches in the future
import "./spellCheck";
import "./enableNotificationsByDefault";
import "./platformClass";
import "./windowsTitleBar";
import "./screenShareAudio";
import "./spellCheck";
import "./windowsTitleBar";