Work around EasyList /adv/ bug. #217

This commit is contained in:
ccd0 2016-01-09 09:20:56 -08:00
parent dfcbc05929
commit 3c296c4c12

View File

@ -55,6 +55,8 @@ $.ajax = do ->
new Notice 'error', message, 30, -> delete blockedURLs[url]
(url, options={}, extra={}) ->
{type, whenModified, upCallbacks, form} = extra
# XXX https://forums.lanik.us/viewtopic.php?f=64&t=24173&p=78310
url = url.replace /^\/\/a\.4cdn\.org\/adv\//, '//a.4cdn.org//adv/'
r = new XMLHttpRequest()
type or= form and 'post' or 'get'
try