Enable Desktop Notifications on first run
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import "./hideGarbage.css";
|
||||
import { isFirstRun } from "./utilts";
|
||||
|
||||
// Make clicking Notifications focus the window
|
||||
const originalSetOnClick = Object.getOwnPropertyDescriptor(Notification.prototype, "onclick")!.set!;
|
||||
@@ -11,3 +12,9 @@ Object.defineProperty(Notification.prototype, "onclick", {
|
||||
},
|
||||
configurable: true
|
||||
});
|
||||
|
||||
if (isFirstRun) {
|
||||
Vencord.Webpack.waitFor("setDesktopType", m => {
|
||||
m.setDesktopType("all");
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user