This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const honeyObserver = new MutationObserver((mutationsList) => { | |
for (const mutation of mutationsList) { | |
if (mutation.type === 'childList' && mutation.addedNodes.length > 0) { | |
for (const node of mutation.addedNodes) { | |
if ( | |
node.nodeType === Node.ELEMENT_NODE && | |
node.tagName === "DIV" && | |
node.hasAttribute('data-reactroot') && | |
node.innerHTML === "<link href=\"https://cdn.honey.io/css/honey-font.min.css?v2\" rel=\"stylesheet\">" | |
) { |