From 6489d2820705e6c4b85aa0a95737c12bc2946ee5 Mon Sep 17 00:00:00 2001 From: christopher james churchill Date: Mon, 21 Mar 2016 14:52:14 +0000 Subject: [PATCH] Update proxy.js ups != was right in one of those cases.... ummm using typeof may be better? https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/typeof --- examples/proxy/proxy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/proxy/proxy.js b/examples/proxy/proxy.js index 174fe93..407a74d 100644 --- a/examples/proxy/proxy.js +++ b/examples/proxy/proxy.js @@ -180,6 +180,6 @@ function shouldDump(name, direction) { return matches(printNameWhitelist[name]); function matches(result) { - return result !== null && result.indexOf(direction) !== -1; + return result != null && result.indexOf(direction) !== -1; } }