forgor to add tsconfig

This commit is contained in:
Vendicated
2023-04-05 16:56:33 +02:00
parent 9d144a11be
commit f357ee4260
4 changed files with 19 additions and 3 deletions

View File

@@ -1,11 +1,11 @@
import "./hideGarbage.css";
import { isFirstRun } from "./utilts";
import { isFirstRun } from "./utils";
// Make clicking Notifications focus the window
const originalSetOnClick = Object.getOwnPropertyDescriptor(Notification.prototype, "onclick")!.set!;
Object.defineProperty(Notification.prototype, "onclick", {
set(onClick) {
originalSetOnClick.call(this, function () {
originalSetOnClick.call(this, function (this: unknown) {
onClick.apply(this, arguments);
VencordDesktop.win.focus();
});
@@ -13,6 +13,7 @@ Object.defineProperty(Notification.prototype, "onclick", {
configurable: true
});
// Enable Desktop Notifications by default
if (isFirstRun) {
Vencord.Webpack.waitFor("setDesktopType", m => {
m.setDesktopType("all");