From c278d39ae2171eb1cdfbdeb7e4cc482b142067cb Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sat, 22 Aug 2015 15:13:24 -0700 Subject: [PATCH] Use binary file workaround on Pale Moon regardless of GM version. --- src/General/CrossOrigin.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/General/CrossOrigin.coffee b/src/General/CrossOrigin.coffee index 14ea199a4..338d20623 100644 --- a/src/General/CrossOrigin.coffee +++ b/src/General/CrossOrigin.coffee @@ -31,8 +31,9 @@ CrossOrigin = do -> cb new Uint8Array(response), contentType, contentDisposition <% } %> <% if (type === 'userscript') { %> - # Use workaround for binary data in Greasemonkey versions < 3.2 and in JS Blocker (Safari) + # Use workaround for binary data in Greasemonkey versions < 3.2, in Pale Moon for all GM versions, and in JS Blocker (Safari). workaround = $.engine is 'gecko' and GM_info? and /^[0-2]\.|^3\.[01](?!\d)/.test(GM_info.version) + workaround or= /PaleMoon\//.test(navigator.userAgent) workaround or= GM_info?.script?.includeJSB? options = method: "GET"