Skip to content

Commit 549fe6c

Browse files
committed
fix(socket): Always throw an error by accident
1 parent 4097cd2 commit 549fe6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

socket.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const url =
3939
let error: string | Event | undefined;
4040

4141
const importSocketIO = async (): Promise<IO> => {
42-
if (!error) throw error;
42+
if (error) throw error;
4343
if (!document.querySelector(`script[src="${url}"]`)) {
4444
const script = document.createElement("script");
4545
script.src = url;

0 commit comments

Comments
 (0)