diff --git a/src/General/lib/$.coffee b/src/General/lib/$.coffee index c5fd5d8bf..11a6c6d57 100755 --- a/src/General/lib/$.coffee +++ b/src/General/lib/$.coffee @@ -177,6 +177,10 @@ $.off = (el, events, handler) -> return $.event = (event, detail, root=d) -> + <% if (type === 'userscript') { %> + if typeof cloneInto is 'function' + detail = cloneInto detail, document.defaultView + <% } %> root.dispatchEvent new CustomEvent event, {bubbles: true, detail} $.open =