Skip to content

Commit 0651f18

Browse files
committed
pass location to websocket
1 parent d3efc01 commit 0651f18

File tree

1 file changed

+1
-1
lines changed
  • libxtracfg/js/xtracfg-transport-websocket/src

1 file changed

+1
-1
lines changed

libxtracfg/js/xtracfg-transport-websocket/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export const transport: TransportCreator = ({
2222
const listeners: Listener[] = [];
2323
allListeners.push(listeners);
2424

25-
const socket = getSocket(specific.location || self.location, debug);
25+
const socket = getSocket(specific?.location || self.location, debug);
2626

2727
socket.then((s) => {
2828
s?.addEventListener("message", (event) => {

0 commit comments

Comments
 (0)