BetterRoleDot: Fix copying colour

This commit is contained in:
Vendicated 2023-04-29 23:26:12 +02:00
parent 070aa343ef
commit a35b417194
No known key found for this signature in database
GPG key ID: A1DC0CFB5615D905

View file

@ -29,10 +29,10 @@ export default definePlugin({
patches: [ patches: [
{ {
find: "M0 4C0 1.79086 1.79086 0 4 0H16C18.2091 0 20 1.79086 20 4V16C20 18.2091 18.2091 20 16 20H4C1.79086 20 0 18.2091 0 16V4Z", find: ".dotBorderBase",
replacement: { replacement: {
match: /viewBox:"0 0 20 20"/, match: /,viewBox:"0 0 20 20"/,
replace: "$&,onClick:()=>$self.copyToClipBoard(e.color),style:{cursor:'pointer'}", replace: "$&,onClick:()=>$self.copyToClipBoard(arguments[0].color),style:{cursor:'pointer'}",
}, },
}, },
{ {