diff options
author | Andrew Dolgov <[email protected]> | 2005-09-05 13:41:59 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2005-09-05 13:41:59 +0100 |
commit | bb7cfaceb1f76bd6dba7d0687ee2e338fd61df5b (patch) | |
tree | c29c84aa399704cfb6e3672e810472d44a73dff7 /functions.js | |
parent | 72763620765b994f400682189dd9a2108a31c9ff (diff) |
further javascript cleanups
Diffstat (limited to 'functions.js')
-rw-r--r-- | functions.js | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/functions.js b/functions.js index cb241ada6..f0d76769d 100644 --- a/functions.js +++ b/functions.js @@ -91,12 +91,15 @@ function hotkey_handler(e) { var piggie = document.getElementById("piggie"); - if (seq.match("807371717369")) { - localPiggieFunction(true); - } else { - localPiggieFunction(false); - } + if (piggie) { + if (seq.match("807371717369")) { + localPiggieFunction(true); + } else { + localPiggieFunction(false); + } + } + if (typeof localHotkeyHandler != 'undefined') { localHotkeyHandler(keycode); } |