Make QuickCSS work

This commit is contained in:
Vendicated
2023-04-05 20:01:31 +02:00
parent 1980606e03
commit 19c43289f6
6 changed files with 31 additions and 5 deletions

View File

@@ -1,5 +1,5 @@
import "./hideGarbage.css";
import { isFirstRun } from "./utils";
import { isFirstRun, localStorage } from "./utils";
// Make clicking Notifications focus the window
const originalSetOnClick = Object.getOwnPropertyDescriptor(Notification.prototype, "onclick")!.set!;
@@ -15,6 +15,9 @@ Object.defineProperty(Notification.prototype, "onclick", {
// Enable Desktop Notifications by default
if (isFirstRun) {
// Hide "Download Discord Desktop now!!!!" banner
localStorage.setItem("hideNag", "true");
Vencord.Webpack.waitFor("setDesktopType", m => {
m.setDesktopType("all");
});