Skip to content

Commit

Permalink
minors
Browse files Browse the repository at this point in the history
  • Loading branch information
MariiaNebesnova committed Jul 19, 2023
1 parent 0ecf647 commit 04a13dc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/utils/appUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { HttpEndpoint, request } from "../../services/backend";
import connector, { sendMessage } from "../../pageServices/connector";
import { SCRIPT_ERROR } from "../../common/constants/constants";
import { locatorGenerationController } from "../../features/locators/utils/locatorGenerationController";
import { MainState } from "../types/mainSlice.types";

export const checkSession = async (setStateCallback: (val: boolean) => void) => {
setStateCallback(false);
Expand All @@ -14,7 +15,7 @@ export const checkSession = async (setStateCallback: (val: boolean) => void) =>
});
};

export const initLocatorSocketController = async (xpathConfig: any) => {
export const initLocatorSocketController = async (xpathConfig: MainState["xpathConfig"]) => {
const sessionId = await request.get(HttpEndpoint.SESSION_ID);
locatorGenerationController.init(sessionId, xpathConfig);
};

0 comments on commit 04a13dc

Please sign in to comment.