Remove $.open workaround.
This commit is contained in:
parent
b5caa77df8
commit
64b04e5c6a
@ -147,9 +147,7 @@ $.off = (el, events, handler) ->
|
|||||||
$.event = (event, detail, root=d) ->
|
$.event = (event, detail, root=d) ->
|
||||||
root.dispatchEvent new CustomEvent event, {bubbles: true, detail}
|
root.dispatchEvent new CustomEvent event, {bubbles: true, detail}
|
||||||
<% if (type === 'userscript') { %>
|
<% if (type === 'userscript') { %>
|
||||||
# XXX fix GM opening file://// for protocol-less URLs.
|
$.open = (URL) -> GM_openInTab URL
|
||||||
# https://github.com/greasemonkey/greasemonkey/issues/1719
|
|
||||||
$.open = (URL) -> GM_openInTab ($.el 'a', href: URL).href
|
|
||||||
<% } else { %>
|
<% } else { %>
|
||||||
$.open = (URL) -> window.open URL, '_blank'
|
$.open = (URL) -> window.open URL, '_blank'
|
||||||
<% } %>
|
<% } %>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user