feat: fix typo

This commit is contained in:
tianyoulan
2022-04-28 15:35:17 +08:00
parent 0d91657557
commit 30f60f87f4
4 changed files with 8 additions and 8 deletions

View File

@@ -3,7 +3,7 @@ import { useEffect, useState } from "react";
import { useSetRecoilState } from "recoil";
import { listen } from "@tauri-apps/api/event";
import { ApiType } from "../../services/types";
import { getInfomation } from "../../services/api";
import { getInformation } from "../../services/api";
import { atomLogData } from "../../services/states";
const MAX_LOG_NUM = 1000;
@@ -25,7 +25,7 @@ export default function useLogSetup() {
});
};
getInfomation().then((info) => {
getInformation().then((info) => {
const { server = "", secret = "" } = info;
ws = new WebSocket(`ws://${server}/logs?token=${secret}`);
ws.addEventListener("message", handler);