Skip to content

Commit 4599575

Browse files
fix(ui): use const for wsProtocol, lint
1 parent 242d860 commit 4599575

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

invokeai/frontend/web/src/services/events/middleware.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ import { socketSubscribed, socketUnsubscribed } from './actions';
1212

1313
export const socketMiddleware = () => {
1414
let areListenersSet = false;
15-
16-
let wsProtocol = window.location.protocol === 'https:' ? 'wss' : 'ws';
15+
16+
const wsProtocol = window.location.protocol === 'https:' ? 'wss' : 'ws';
1717
let socketUrl = `${wsProtocol}://${window.location.host}`;
1818

1919
const socketOptions: Parameters<typeof io>[0] = {

0 commit comments

Comments
 (0)