diff --git a/index.html b/index.html
index b8ce766..98cbdf1 100644
--- a/index.html
+++ b/index.html
@@ -300,7 +300,7 @@
switchToRemoteUI();
videoElem.remote.onconnecting = switchToRemoteUI;
- videoElem.remote.onconnect = swithToRemoteUI;
+ videoElem.remote.onconnect = switchToRemoteUI;
videoElem.remote.ondisconnect = switchToLocalUI;
// Handles both 'connecting' and 'connected' state. Calling more than once