Make QuickCSS work
This commit is contained in:
@@ -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");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user