project-client/src/renderer/index.ts

27 lines
689 B
TypeScript
Raw Normal View History

2023-04-09 20:49:50 +00:00
/*
* SPDX-License-Identifier: GPL-3.0
* Vencord Desktop, a desktop app aiming to give you a snappier Discord Experience
* Copyright (c) 2023 Vendicated and Vencord contributors
*/
import "./fixes";
2023-06-23 15:20:54 +00:00
import "./appBadge";
console.log("read if cute :3");
export * as Components from "./components";
2023-06-09 20:47:59 +00:00
import { Settings } from "./settings";
export { Settings };
const arRPC = Vencord.Plugins.plugins["WebRichPresence (arRPC)"];
arRPC.required = !!Settings.store.arRPC;
Settings.addChangeListener("arRPC", v => {
arRPC.required = !!v;
if (v && !arRPC.started) Vencord.Plugins.startPlugin(arRPC);
else if (arRPC.started) {
Vencord.Plugins.stopPlugin(arRPC);
}
});