diff --git a/src/apis/connect.ts b/src/apis/connect.ts index 99eef20f709..640e766cfd2 100644 --- a/src/apis/connect.ts +++ b/src/apis/connect.ts @@ -53,7 +53,7 @@ export async function open( /** * Update the guest name * @param guestName the name to use for the local user - * @param connection connection to close + * @param connection connection to update the guest name for */ export async function update( guestName: string, diff --git a/src/components/Editor.singleton.js b/src/components/Editor.singleton.js deleted file mode 100644 index 8e6a7a00131..00000000000 --- a/src/components/Editor.singleton.js +++ /dev/null @@ -1,32 +0,0 @@ -/** - * SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors - * SPDX-License-Identifier: AGPL-3.0-or-later - */ - -/** - * Get instance of Editor component - * Using singleton approach here to avoid duplicate yjs import error - * @return {Promise<*>} - */ -export default async function getEditorInstance() { - if (!window._nc_text_editor_instance) { - if (window._nc_text_editor_importing) { - return await new Promise((resolve) => { - const intervalId = setInterval(() => { - if (!window._nc_text_editor_instance) { - return - } - resolve(window._nc_text_editor_instance) - clearInterval(intervalId) - }, 200) - }) - } else { - window._nc_text_editor_importing = true - } - const Editor = await import('./Editor.vue') - const { default: Vue } = await import('vue') - const EditorConstructor = Vue.extend(Editor.default) - window._nc_text_editor_instance = EditorConstructor - } - return window._nc_text_editor_instance -} diff --git a/src/components/ViewerComponent.vue b/src/components/ViewerComponent.vue index 09e02cb2fa7..b2c0dc44275 100644 --- a/src/components/ViewerComponent.vue +++ b/src/components/ViewerComponent.vue @@ -26,15 +26,17 @@