mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix(ui): use const
for wsProtocol
, lint
This commit is contained in:
parent
242d860a47
commit
4599575e65
@ -12,8 +12,8 @@ import { socketSubscribed, socketUnsubscribed } from './actions';
|
|||||||
|
|
||||||
export const socketMiddleware = () => {
|
export const socketMiddleware = () => {
|
||||||
let areListenersSet = false;
|
let areListenersSet = false;
|
||||||
|
|
||||||
let wsProtocol = window.location.protocol === 'https:' ? 'wss' : 'ws';
|
const wsProtocol = window.location.protocol === 'https:' ? 'wss' : 'ws';
|
||||||
let socketUrl = `${wsProtocol}://${window.location.host}`;
|
let socketUrl = `${wsProtocol}://${window.location.host}`;
|
||||||
|
|
||||||
const socketOptions: Parameters<typeof io>[0] = {
|
const socketOptions: Parameters<typeof io>[0] = {
|
||||||
|
Loading…
Reference in New Issue
Block a user