Index: lib/synchronizer.js |
=================================================================== |
--- a/lib/synchronizer.js |
+++ b/lib/synchronizer.js |
@@ -306,17 +306,17 @@ let Synchronizer = exports.Synchronizer |
if (!(subscription.url in FilterStorage.knownSubscriptions)) |
return; |
let match = /^(\d+)(?:\s+(\S+))?$/.exec(request.responseText); |
if (match && match[1] == "301" && match[2] && /^https?:\/\//i.test(match[2])) // Moved permanently |
redirectCallback(match[2]); |
else if (match && match[1] == "410") // Gone |
{ |
- let data = "[Adblock]\n" + subscription.filters.map(function(f) f.text).join("\n"); |
+ let data = "[Adblock]\n" + subscription.filters.map(function(f) { return f.text; }).join("\n"); |
redirectCallback("data:text/plain," + encodeURIComponent(data)); |
} |
}, false); |
request.send(null); |
} |
} |
}, |
}; |