summaryrefslogtreecommitdiff
path: root/functions.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2005-09-05 13:41:59 +0100
committerAndrew Dolgov <[email protected]>2005-09-05 13:41:59 +0100
commitbb7cfaceb1f76bd6dba7d0687ee2e338fd61df5b (patch)
treec29c84aa399704cfb6e3672e810472d44a73dff7 /functions.js
parent72763620765b994f400682189dd9a2108a31c9ff (diff)
further javascript cleanups
Diffstat (limited to 'functions.js')
-rw-r--r--functions.js13
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);
}