diff --git a/src/Exceptionless.Web/ClientApp/src/lib/api/WebSocketClient.ts b/src/Exceptionless.Web/ClientApp/src/lib/api/WebSocketClient.ts index 8c6d0c0839..719878ac16 100644 --- a/src/Exceptionless.Web/ClientApp/src/lib/api/WebSocketClient.ts +++ b/src/Exceptionless.Web/ClientApp/src/lib/api/WebSocketClient.ts @@ -1,5 +1,5 @@ import { accessToken } from './auth'; -import { documentVisibilityStore } from 'svelte-legos'; +//import { documentVisibilityStore } from 'svelte-legos'; export class WebSocketClient { private accessToken: string | null = null; @@ -33,17 +33,17 @@ export class WebSocketClient { } }); - const visibility = documentVisibilityStore(); - visibility.subscribe((visible) => { - if ( - visible === 'visible' && - (this.readyState === WebSocket.CLOSING || this.readyState === WebSocket.CLOSED) - ) { - this.connect(); - } else if (visible === 'hidden') { - this.close(); - } - }); + // const visibility = documentVisibilityStore(); + // visibility.subscribe((visible) => { + // if ( + // visible === 'visible' && + // (this.readyState === WebSocket.CLOSING || this.readyState === WebSocket.CLOSED) + // ) { + // this.connect(); + // } else if (visible === 'hidden') { + // this.close(); + // } + // }); } public connect(reconnectAttempt: boolean = true) { diff --git a/src/Exceptionless.Web/ClientApp/src/lib/components/CopyToClipboardButton.svelte b/src/Exceptionless.Web/ClientApp/src/lib/components/CopyToClipboardButton.svelte index 5748ec0ea6..2994d5bd4a 100644 --- a/src/Exceptionless.Web/ClientApp/src/lib/components/CopyToClipboardButton.svelte +++ b/src/Exceptionless.Web/ClientApp/src/lib/components/CopyToClipboardButton.svelte @@ -1,7 +1,7 @@ -