aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorV <vendicated@riseup.net>2023-09-24 01:16:41 +0200
committerV <vendicated@riseup.net>2023-09-24 01:16:50 +0200
commitd9933c5793b6c9dc6902caa7ef0f236fb76e2d54 (patch)
treec394fd53105fa0577e43d555e29f05c97c265fc3 /src
parent2735037a67ff7489b33129714f733fc75a3ba91a (diff)
downloadVencord-d9933c5793b6c9dc6902caa7ef0f236fb76e2d54.tar.gz
Vencord-d9933c5793b6c9dc6902caa7ef0f236fb76e2d54.tar.bz2
Vencord-d9933c5793b6c9dc6902caa7ef0f236fb76e2d54.zip
settingsSync: correctly use platform agnostic relaunch
Diffstat (limited to 'src')
-rw-r--r--src/utils/settingsSync.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/utils/settingsSync.ts b/src/utils/settingsSync.ts
index 8766cbb..ec32e2b 100644
--- a/src/utils/settingsSync.ts
+++ b/src/utils/settingsSync.ts
@@ -23,6 +23,7 @@ import { deflateSync, inflateSync } from "fflate";
import { getCloudAuth, getCloudUrl } from "./cloud";
import { Logger } from "./Logger";
+import { relaunch } from "./native";
import { chooseFile, saveFile } from "./web";
export async function importSettings(data: string) {
@@ -229,7 +230,7 @@ export async function getCloudSettings(shouldNotify = true, force = false) {
title: "Cloud Settings",
body: "Your settings have been updated! Click here to restart to fully apply changes!",
color: "var(--green-360)",
- onClick: () => window.DiscordNative.app.relaunch(),
+ onClick: IS_WEB ? () => location.reload() : relaunch,
noPersist: true
});