Skip to content
This repository has been archived by the owner on Jun 27, 2021. It is now read-only.

Commit

Permalink
Update avatar_links.js
Browse files Browse the repository at this point in the history
  • Loading branch information
xirreal committed Dec 10, 2020
1 parent e53347b commit 08fdc11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/avatar_links.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ module.exports = new Plugin({
await new Promise(r => {setTimeout(r, 5)});
const theMenu = document.querySelector('.'+cm.menu);

const reactData = theMenu[Object.keys(theMenu)[0]];
const reactData = theMenu[Object.keys(theMenu).find(key => key.startsWith("__reactInternalInstance") || key.startsWith("__reactFiber"))];

let label = "";
let url = "";
Expand Down

0 comments on commit 08fdc11

Please sign in to comment.