Commit 5126457f authored by Juan Corona's avatar Juan Corona

Make mutation observer debounce at leading edge

parent c6bab421
......@@ -68,7 +68,7 @@ module.exports = class CrossFrame extends Plugin
_discoverOwnFrames()
# Listen for DOM mutations, to know when frames are added / removed
observer = new MutationObserver(debounce(_discoverOwnFrames, 300))
observer = new MutationObserver(debounce(_discoverOwnFrames, 300, leading: true))
observer.observe(elem, {childList: true, subtree: true});
_discoverOwnFrames = ->
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment