aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/consoleShortcuts.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/consoleShortcuts.ts')
-rw-r--r--src/plugins/consoleShortcuts.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/consoleShortcuts.ts b/src/plugins/consoleShortcuts.ts
index 70a9875..056d246 100644
--- a/src/plugins/consoleShortcuts.ts
+++ b/src/plugins/consoleShortcuts.ts
@@ -17,6 +17,7 @@
*/
import { Devs } from "@utils/constants";
+import { relaunch } from "@utils/native";
import definePlugin from "@utils/types";
import * as Webpack from "@webpack";
import { extract, filters, findAll, search } from "@webpack";
@@ -77,7 +78,7 @@ export default definePlugin({
Settings: Vencord.Settings,
Api: Vencord.Api,
reload: () => location.reload(),
- restart: IS_WEB ? WEB_ONLY("restart") : window.DiscordNative.app.relaunch
+ restart: IS_WEB ? WEB_ONLY("restart") : relaunch
};
},