summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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) {