Revert "Work around GM3.0 GM_openInTab bug."

It seems to be fixed in GM3.1 but we don't have a way to distinguish.

This reverts commit d46d02f2497240163699782cb55c6480a87d93b8.
This commit is contained in:
ccd0 2015-03-16 12:37:30 -07:00
parent 5209b3f970
commit 83aa975211

View File

@ -221,11 +221,7 @@ $.event = (event, detail, root=d) ->
$.open =
<% if (type === 'userscript') { %>
if GM_info.version is 'unknown' # GM_info.version is broken in GM3.0
# XXX https://github.com/greasemonkey/greasemonkey/issues/2094
(URL) -> $.globalEval "window.open(#{JSON.stringify URL}, '_blank');"
else
GM_openInTab
GM_openInTab
<% } else { %>
(URL) -> window.open URL, '_blank'
<% } %>