]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - js/facebookapp.js
Updated mobilelogo extension
[quix0rs-gnu-social.git] / js / facebookapp.js
index 8ef9aa532bf79f5f3f330a1c8a882594dd2ce111..5deb6e42b330d7d6be6745d2a4881cd0dbbb68f0 100644 (file)
@@ -1,6 +1,6 @@
 /*
-* Laconica - a distributed open-source microblogging tool
-* Copyright (C) 2008, Controlez-Vous, Inc.
+* StatusNet - a distributed open-source microblogging tool
+* Copyright (C) 2008, StatusNet, Inc.
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as published by
 var max = 140;
 var noticeBox = document.getElementById('notice_data-text'); 
 
-noticeBox.addEventListener('keyup', keypress);
-noticeBox.addEventListener('keydown', keypress);
-noticeBox.addEventListener('keypress', keypress);
-noticeBox.addEventListener('change', keypress);
+if (noticeBox) {
+    noticeBox.addEventListener('keyup', keypress);
+    noticeBox.addEventListener('keydown', keypress);
+    noticeBox.addEventListener('keypress', keypress);
+    noticeBox.addEventListener('change', keypress);
+}
 
 // Do our the countdown
 function keypress(evt) {