diff --git a/index.php b/index.php index 66cefd0..c3cb795 100644 --- a/index.php +++ b/index.php @@ -80,8 +80,11 @@ window.onbeforeunload = function() { "top.ICEcoder.bugFilePaths = ['".implode("','",$ICEcoder["bugFilePaths"])."'];". "top.ICEcoder.bugFileCheckTimer = ".$ICEcoder["bugFileCheckTimer"].";". "top.ICEcoder.bugFileMaxLines = ".$ICEcoder["bugFileMaxLines"].";". - "top.ICEcoder.csrf = '".$_SESSION["csrf"]."'"; -?>;ICEcoder.init();top.ICEcoder.content.style.visibility='visible';top.ICEcoder.filesFrame.contentWindow.frames['processControl'].location.href = 'processes/on-load.php';" onResize="ICEcoder.setLayout()" onKeyDown="return ICEcoder.interceptKeys('coder',event);" onKeyUp="parent.ICEcoder.resetKeys(event);" onBlur="parent.ICEcoder.resetKeys(event);"> + if($ICEcoder["githubAuthToken"] != "") { + echo "top.ICEcoder.githubAuthTokenSet = true;"; + } + "top.ICEcoder.csrf = '".$_SESSION["csrf"]."';"; +?>ICEcoder.init();top.ICEcoder.content.style.visibility='visible';top.ICEcoder.filesFrame.contentWindow.frames['processControl'].location.href = 'processes/on-load.php';" onResize="ICEcoder.setLayout()" onKeyDown="return ICEcoder.interceptKeys('coder',event);" onKeyUp="parent.ICEcoder.resetKeys(event);" onBlur="parent.ICEcoder.resetKeys(event);">