gifPaste: fix unable to use gif picker in profile customization (#1947)
This commit is contained in:
parent
27fffc8bc3
commit
44b21394b3
@ -33,8 +33,8 @@ export default definePlugin({
|
|||||||
patches: [{
|
patches: [{
|
||||||
find: ".handleSelectGIF=",
|
find: ".handleSelectGIF=",
|
||||||
replacement: {
|
replacement: {
|
||||||
match: /\.handleSelectGIF=\i=>\{/,
|
match: /\.handleSelectGIF=(\i)=>\{/,
|
||||||
replace: ".handleSelectGIF=function(gif){return $self.handleSelect(gif);"
|
replace: ".handleSelectGIF=$1=>{if (!this.props.className) return $self.handleSelect($1);"
|
||||||
}
|
}
|
||||||
}],
|
}],
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user