Skip to content

Commit 1d5fba5

Browse files
committed
feat(nodejs:website): Update favicon and fix socket status.
1 parent f688ee1 commit 1d5fba5

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed
Binary file not shown.
-417 KB
Binary file not shown.

nodejs/packages/website/src/components/Layout/index.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,9 @@ const Layout = ({children}, ref) => {
7070
const socket = useSocket();
7171
const [socketStatus, setSocketStatus] = React.useState({ color: 'transperant' });
7272
React.useEffect(() => {
73-
if (socket.vsn) {
73+
if (socket?.vsn) {
7474
const updateState = () => {
75-
console.log(socket);
76-
const state = '';//socket.connectionState();
75+
const state = socket.connectionState();
7776
switch(state) {
7877
case "connecting":
7978
setSocketStatus({ color: 'blue' });

0 commit comments

Comments
 (0)