This commit is contained in:
V
2023-06-26 00:41:52 +02:00
parent 4abce9d084
commit 477ecbb4ba
11 changed files with 12 additions and 34 deletions

View File

@@ -22,11 +22,11 @@ Object.defineProperty(Notification.prototype, "onclick", {
configurable: true
});
// Enable Desktop Notifications by default
if (isFirstRun) {
// Hide "Download Discord Desktop now!!!!" banner
localStorage.setItem("hideNag", "true");
// Enable Desktop Notifications by default
waitFor("setDesktopType", m => {
m.setDesktopType("all");
});

View File

@@ -23,7 +23,7 @@ export function addPatch<P extends PatchData>(p: P) {
}
patch.plugin = "VencordDesktop";
Vencord.Plugins.patches.push(patch as Patch);
Vencord.Plugins.patches.push(patch);
}
Object.assign(VCDP, globals);

View File

@@ -4,7 +4,7 @@
* Copyright (c) 2023 Vendicated and Vencord contributors
*/
export const localStorage = (window.vcdLS = window.localStorage);
export const { localStorage } = window;
export const isFirstRun = (() => {
const key = "VCD_FIRST_RUN";