Better test for Greasemonkey.
This commit is contained in:
parent
75a163d2f9
commit
ddd0365cc8
@ -32,7 +32,7 @@ CrossOrigin = do ->
|
|||||||
<% } %>
|
<% } %>
|
||||||
<% if (type === 'userscript') { %>
|
<% if (type === 'userscript') { %>
|
||||||
# Use workaround for binary data in Greasemonkey versions < 3.2
|
# 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 =
|
options =
|
||||||
method: "GET"
|
method: "GET"
|
||||||
url: url
|
url: url
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user