1
0
Fork 1
mirror of https://github.com/Vendicated/Vencord.git synced 2025-01-08 08:56:22 +00:00

Merge branch 'dev' into immediate-finds

This commit is contained in:
Nuckyz 2024-09-27 05:48:52 -03:00
commit 67264cc73f
No known key found for this signature in database
GPG key ID: 440BF8296E1C4AD9
2 changed files with 6 additions and 1 deletions

View file

@ -93,7 +93,7 @@ interface PluginCardProps extends React.HTMLProps<HTMLDivElement> {
export function PluginCard({ plugin, disabled, onRestartNeeded, onMouseEnter, onMouseLeave, isNew }: PluginCardProps) {
const settings = Settings.plugins[plugin.name];
const isEnabled = () => settings.enabled ?? false;
const isEnabled = () => Vencord.Plugins.isPluginEnabled(plugin.name);
function toggleEnabled() {
const wasEnabled = isEnabled();

View file

@ -77,6 +77,11 @@ export default definePlugin({
match: /Math\.max.{0,30}\)\)/,
replace: "arguments[0]"
},
// Fix streams not playing audio until you update them
{
match: /\}return"video"/,
replace: "this.updateAudioElement();$&"
},
// Patch the volume
{
match: /\.volume=this\._volume\/100;/,