mirror of
https://github.com/chylex/Discord-History-Tracker.git
synced 2025-04-14 23:50:33 +03:00
Fix getReactProps for updated React
This commit is contained in:
parent
bd76c3e985
commit
f8b8b1915f
@ -31,7 +31,7 @@ mentions
|
||||
embeds
|
||||
attachments
|
||||
toDate
|
||||
_currentElement
|
||||
memoizedProps
|
||||
props
|
||||
children
|
||||
channel
|
||||
|
@ -27,7 +27,7 @@ var DISCORD = (function(){
|
||||
*/
|
||||
getReactProps: function(ele){
|
||||
var key = Object.keys(ele || {}).find(key => key.startsWith("__reactInternalInstance"));
|
||||
return key ? ele[key]._currentElement.props : null;
|
||||
return key ? ele[key].memoizedProps : null;
|
||||
},
|
||||
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user