From 868839dc28b42d16dcc2e581219bf67c039e4783 Mon Sep 17 00:00:00 2001 From: umaranis Date: Thu, 8 Feb 2024 07:52:47 +1100 Subject: [PATCH] refactor: remove unused variable --- demos/playground/src/themes/PlaygroundEditorTheme.css | 3 +-- .../src/core/plugins/collaboration/YjsFocusTracking.svelte | 2 -- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/demos/playground/src/themes/PlaygroundEditorTheme.css b/demos/playground/src/themes/PlaygroundEditorTheme.css index 7d814bb..28328c8 100644 --- a/demos/playground/src/themes/PlaygroundEditorTheme.css +++ b/demos/playground/src/themes/PlaygroundEditorTheme.css @@ -99,10 +99,9 @@ margin: 0; margin-top: 8px; margin-bottom: 8px; - tab-size: 2; - /* white-space: pre; */ overflow-x: auto; position: relative; + tab-size: 2; } .PlaygroundEditorTheme__code:before { content: attr(data-gutter); diff --git a/packages/svelte-lexical/src/core/plugins/collaboration/YjsFocusTracking.svelte b/packages/svelte-lexical/src/core/plugins/collaboration/YjsFocusTracking.svelte index 3582795..048d90d 100644 --- a/packages/svelte-lexical/src/core/plugins/collaboration/YjsFocusTracking.svelte +++ b/packages/svelte-lexical/src/core/plugins/collaboration/YjsFocusTracking.svelte @@ -16,8 +16,6 @@ export let awarenessData: object | undefined = undefined; onMount(() => { - const {awareness} = provider; - return mergeRegister( editor.registerCommand( FOCUS_COMMAND,