mirror of
https://github.com/Vendicated/Vencord.git
synced 2025-01-09 09:26:22 +00:00
Merge branch 'dev' into immediate-finds
This commit is contained in:
commit
67264cc73f
2 changed files with 6 additions and 1 deletions
|
@ -93,7 +93,7 @@ interface PluginCardProps extends React.HTMLProps<HTMLDivElement> {
|
||||||
export function PluginCard({ plugin, disabled, onRestartNeeded, onMouseEnter, onMouseLeave, isNew }: PluginCardProps) {
|
export function PluginCard({ plugin, disabled, onRestartNeeded, onMouseEnter, onMouseLeave, isNew }: PluginCardProps) {
|
||||||
const settings = Settings.plugins[plugin.name];
|
const settings = Settings.plugins[plugin.name];
|
||||||
|
|
||||||
const isEnabled = () => settings.enabled ?? false;
|
const isEnabled = () => Vencord.Plugins.isPluginEnabled(plugin.name);
|
||||||
|
|
||||||
function toggleEnabled() {
|
function toggleEnabled() {
|
||||||
const wasEnabled = isEnabled();
|
const wasEnabled = isEnabled();
|
||||||
|
|
|
@ -77,6 +77,11 @@ export default definePlugin({
|
||||||
match: /Math\.max.{0,30}\)\)/,
|
match: /Math\.max.{0,30}\)\)/,
|
||||||
replace: "arguments[0]"
|
replace: "arguments[0]"
|
||||||
},
|
},
|
||||||
|
// Fix streams not playing audio until you update them
|
||||||
|
{
|
||||||
|
match: /\}return"video"/,
|
||||||
|
replace: "this.updateAudioElement();$&"
|
||||||
|
},
|
||||||
// Patch the volume
|
// Patch the volume
|
||||||
{
|
{
|
||||||
match: /\.volume=this\._volume\/100;/,
|
match: /\.volume=this\._volume\/100;/,
|
||||||
|
|
Loading…
Reference in a new issue