File tree Expand file tree Collapse file tree 2 files changed +2
-0
lines changed
resources/scripts/components/server Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -52,6 +52,7 @@ const TerminalDiv = styled.div`
5252export default ( ) => {
5353 const TERMINAL_PRELUDE = '\u001b[1m\u001b[33mcontainer@pterodactyl~ \u001b[0m' ;
5454 const [ terminalElement , setTerminalElement ] = useState < HTMLDivElement | null > ( null ) ;
55+
5556 const useRef = useCallback ( node => setTerminalElement ( node ) , [ ] ) ;
5657 const terminal = useMemo ( ( ) => new Terminal ( { ...terminalProps } ) , [ ] ) ;
5758 const { connected, instance } = ServerContext . useStoreState ( state => state . socket ) ;
Original file line number Diff line number Diff line change @@ -53,6 +53,7 @@ export default () => {
5353 }
5454
5555 instance . addListener ( 'stats' , statsListener ) ;
56+ instance . send ( 'send stats' ) ;
5657
5758 return ( ) => {
5859 instance . removeListener ( 'stats' , statsListener ) ;
You can’t perform that action at this time.
0 commit comments