Better test for Greasemonkey.

This commit is contained in:
ccd0 2015-07-04 20:40:18 -07:00
parent 75a163d2f9
commit ddd0365cc8

View File

@ -32,7 +32,7 @@ CrossOrigin = do ->
<% } %>
<% if (type === 'userscript') { %>
# Use workaround for binary data in Greasemonkey versions < 3.2
workaround = !GM_info.scriptHandler and /^[12]\.|^3\.[01](?!\d)/.test(GM_info.version)
workaround = $.engine is 'gecko' and GM_info? and /^[0-2]\.|^3\.[01](?!\d)/.test(GM_info.version)
options =
method: "GET"
url: url