VoiceDownload: fix patch
This commit is contained in:
parent
d53d759186
commit
e7c5c90bba
2 changed files with 4 additions and 5 deletions
|
|
@ -15,10 +15,10 @@ export default definePlugin({
|
|||
authors: [Devs.puv],
|
||||
patches: [
|
||||
{
|
||||
find: "rippleContainer,children",
|
||||
find: "VOICE_MESSAGE_PLAYBACK_STARTED,{src:",
|
||||
replacement: {
|
||||
match: /\(0,\i\.jsx\).{0,150},children:.{0,50}\("source",{src:(\i)}\)}\)/,
|
||||
replace: "[$&, $self.renderDownload($1)]"
|
||||
match: /(?<=onVolumeHide:\i\}\))/,
|
||||
replace: ",$self.renderDownload(arguments[0].src)"
|
||||
}
|
||||
}
|
||||
],
|
||||
|
|
|
|||
|
|
@ -2,11 +2,10 @@
|
|||
width: 24px;
|
||||
height: 24px;
|
||||
color: var(--interactive-icon-default);
|
||||
margin-left: 12px;
|
||||
cursor: pointer;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.vc-voice-download:hover {
|
||||
color: var(--interactive-icon-active);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue