summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlon Levy <alon@pobox.com>2014-11-29 22:04:09 +0200
committerAlon Levy <alon@pobox.com>2014-11-29 22:30:22 +0200
commitd27d697c1b914af3fbf76f12c31026cc56f37570 (patch)
tree2cdc7dab7b6af3b9ec7e9acc08c79325f5cf2502 /src
parentf4641e13cd4e90d9e43d83ace1079d58e3822b6b (diff)
history: don't throw on bad input (it's just history)
Diffstat (limited to 'src')
-rw-r--r--src/history.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/history.js b/src/history.js
index 234a1c8a..3bc750d2 100644
--- a/src/history.js
+++ b/src/history.js
@@ -115,7 +115,8 @@ History.prototype.record_keystrokes = function(obj)
if (where === undefined || keys === undefined || keys.length === undefined ||
keys.length <= 0) {
- throw "Invalid arguments";
+ console.log("invalid arguments");
+ return;
}
keys = keys.filter(function(k) { return k !== undefined; });
if (keys.length == 0) {