forgor to add tsconfig
This commit is contained in:
@@ -1 +0,0 @@
|
||||
export const localStorage = window.localStorage;
|
||||
|
||||
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user