Add additional build flavours for Vencord Desktop (#765)
This commit is contained in:
@ -24,6 +24,7 @@ import { handleComponentFailed } from "@components/handleComponentFailed";
|
||||
import { Link } from "@components/Link";
|
||||
import { Margins } from "@utils/margins";
|
||||
import { classes, useAwaiter } from "@utils/misc";
|
||||
import { relaunch } from "@utils/native";
|
||||
import { changes, checkForUpdates, getRepo, isNewer, rebuild, update, updateError, UpdateLogger } from "@utils/updater";
|
||||
import { Alerts, Button, Card, Forms, Parser, React, Switch, Toasts } from "@webpack/common";
|
||||
|
||||
@ -133,7 +134,7 @@ function Updatable(props: CommonProps) {
|
||||
cancelText: "Not now!",
|
||||
onConfirm() {
|
||||
if (needFullRestart)
|
||||
window.DiscordNative.app.relaunch();
|
||||
relaunch();
|
||||
else
|
||||
location.reload();
|
||||
r();
|
||||
|
Reference in New Issue
Block a user