mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2024-12-23 14:22:22 +00:00
fix suggested by
Dean Mumby
This commit is contained in:
parent
2ad9761405
commit
33b6125d72
@ -6,9 +6,9 @@
|
||||
import { createApp } from 'vue';
|
||||
import io from 'socket.io-client';
|
||||
|
||||
// fixes issues when people not hosting this site on local network
|
||||
const URL = process.env.NODE_ENV === "production" ? undefined : (import.meta.env.VITE_GPT4ALL_API);
|
||||
const socket = new io(URL);
|
||||
//const socket = new io(import.meta.env.VITE_GPT4ALL_API );
|
||||
|
||||
socket.onopen = () => {
|
||||
console.log('WebSocket connection established.');
|
||||
|
Loading…
Reference in New Issue
Block a user