Secure the call of the costumStart function

Author: Peter 'Pita' Martischka <petermartischka@googlemail.com>
This commit is contained in:
Peter 'Pita' Martischka 2011-08-01 12:08:18 +01:00 committed by Etherpad Lite
parent 38fd56a877
commit 053e48c3f4
3 changed files with 3 additions and 3 deletions

View file

@ -125,6 +125,6 @@
} }
//start the costum js //start the costum js
if(costumStart) costumStart(); if(typeof costumStart == "function") costumStart();
</script> </script>
</html> </html>

View file

@ -30,7 +30,7 @@ $(document).ready(function()
} }
//start the costum js //start the costum js
if(costumStart) costumStart(); if(typeof costumStart == "function") costumStart();
handshake(); handshake();
}); });

View file

@ -58,7 +58,7 @@
$(document).ready(function () $(document).ready(function ()
{ {
//start the costum js //start the costum js
if(costumStart) costumStart(); if(typeof costumStart == "function") costumStart();
//get the padId out of the url //get the padId out of the url
var urlParts= document.location.pathname.split("/"); var urlParts= document.location.pathname.split("/");