From e55a6004d51c2a492be79887497a0c8e6fcc3d00 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sun, 18 Aug 2019 11:30:36 -0700 Subject: [PATCH] Fix workaround for Chrome CORB bug breaking posting in old versions of Chrome. #2396 --- src/platform/$.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platform/$.coffee b/src/platform/$.coffee index a88b06618..e0df4ecb3 100644 --- a/src/platform/$.coffee +++ b/src/platform/$.coffee @@ -79,7 +79,7 @@ $.ajax = do -> url = url.replace /^((?:https?:)?\/\/(?:\w+\.)?(?:4chan|4channel|4cdn)\.org)\/adv\//, '$1//adv/' <% if (type === 'crx') { %> # XXX https://bugs.chromium.org/p/chromium/issues/detail?id=920638 - if Conf['Work around CORB Bug'] and g.SITE.software is 'yotsuba' and !options.testCORB + if Conf['Work around CORB Bug'] and g.SITE.software is 'yotsuba' and !options.testCORB and FormData.prototype.entries return $.ajaxPage url, options <% } %> {onloadend, timeout, responseType, withCredentials, type, onprogress, form, headers} = options