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 @@ -
value || ''} - on:copy-done={handleCopyDone} - on:copy-error={handleCopyError} -> + +
diff --git a/src/Exceptionless.Web/ClientApp/src/lib/stores/sidebar.ts b/src/Exceptionless.Web/ClientApp/src/lib/stores/sidebar.ts index 985956ae5b..6d3e9bb7aa 100644 --- a/src/Exceptionless.Web/ClientApp/src/lib/stores/sidebar.ts +++ b/src/Exceptionless.Web/ClientApp/src/lib/stores/sidebar.ts @@ -1,11 +1,11 @@ import { writable, type Writable } from 'svelte/store'; import { persisted } from 'svelte-local-storage-store'; -import { mediaQuery } from 'svelte-legos'; +//import { mediaQuery } from 'svelte-legos'; export const isSidebarOpen = persisted('sidebar-open', false); export const isPageWithSidebar: Writable = writable(true); // Helper functions -export const isSmallScreen = mediaQuery('(min-width: 640px)'); -export const isMediumScreen = mediaQuery('(min-width: 768px)'); -export const isLargeScreen = mediaQuery('(min-width: 1024px)'); +export const isSmallScreen = writable(false); //mediaQuery('(min-width: 640px)'); +export const isMediumScreen = writable(false); // mediaQuery('(min-width: 768px)'); +export const isLargeScreen = writable(false); // mediaQuery('(min-width: 1024px)');