Migrate to @vencord/types package

This commit is contained in:
Vendicated
2023-04-19 22:47:47 +02:00
parent 427fde27ad
commit 0aaddf24c6
10 changed files with 130 additions and 46 deletions

View File

@@ -6,6 +6,8 @@
import "./hideGarbage.css";
import { waitFor } from "@vencord/types/webpack";
import { isFirstRun, localStorage } from "./utils";
// Make clicking Notifications focus the window
@@ -25,7 +27,7 @@ if (isFirstRun) {
// Hide "Download Discord Desktop now!!!!" banner
localStorage.setItem("hideNag", "true");
Vencord.Webpack.waitFor("setDesktopType", m => {
waitFor("setDesktopType", m => {
m.setDesktopType("all");
});
}