diff --git a/BinaryDad.Coding/wwwroot/js/hub.js b/BinaryDad.Coding/wwwroot/js/hub.js index e2e1456..cc9ba7a 100644 --- a/BinaryDad.Coding/wwwroot/js/hub.js +++ b/BinaryDad.Coding/wwwroot/js/hub.js @@ -37,14 +37,15 @@ $('#editor').height(editorHeight - 2); }; - isLiveMode(); - setHeight(); - // events $(window).on('hashchange', isLiveMode); $(window).resize(setHeight); $('#your-name-text, #your-color-text').doneTyping(sendName); + isLiveMode(); + setHeight(); + window.location.hash = '#live'; // set live mode on by default + let isTeacher = window.location.hash === '#4ELQcUq7UnFGghAZCVr4Chr9JmtncigfkGu5WSf9'; if (isTeacher) {