Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: lib/requestBlocker.js

Issue 29371763: Issue 4795 - Use modern JavaScript syntax (Closed)
Patch Set: Undo accidental whitespace change Created Jan. 16, 2017, 2:57 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: lib/requestBlocker.js
diff --git a/lib/requestBlocker.js b/lib/requestBlocker.js
index 91df223d5a1b82d6684d5d20f8a8c44ee7c4ed87..f30e8e55a7b688bda7903b38e8a0891954543ff9 100644
--- a/lib/requestBlocker.js
+++ b/lib/requestBlocker.js
@@ -152,7 +152,7 @@ FilterNotifier.on("filter.removed", onFilterChange);
FilterNotifier.on("filter.disabled", arg => onFilterChange(arg, true));
FilterNotifier.on("load", onFilterChange);
-port.on("request.websocket", function(msg, sender)
+port.on("request.websocket", (msg, sender) =>
{
return ext.webRequest.onBeforeRequest._dispatch(
new URL(msg.url),

Powered by Google App Engine
This is Rietveld