diff options
| author | syuilo <4439005+syuilo@users.noreply.github.com> | 2025-03-09 21:23:36 +0900 |
|---|---|---|
| committer | syuilo <4439005+syuilo@users.noreply.github.com> | 2025-03-09 21:23:36 +0900 |
| commit | 0402866b4378e014943cb03031953e07bd082a35 (patch) | |
| tree | 54ae6bcd9d50b1746da2f8b345b7e51f96edc28b /packages/frontend/src/components/MkNote.vue | |
| parent | chore(frontend): remove unused binding (diff) | |
| download | sharkey-0402866b4378e014943cb03031953e07bd082a35.tar.gz sharkey-0402866b4378e014943cb03031953e07bd082a35.tar.bz2 sharkey-0402866b4378e014943cb03031953e07bd082a35.zip | |
enhance(frontend): improve plugin management
Diffstat (limited to 'packages/frontend/src/components/MkNote.vue')
| -rw-r--r-- | packages/frontend/src/components/MkNote.vue | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/frontend/src/components/MkNote.vue b/packages/frontend/src/components/MkNote.vue index f3f8c1ce82..ca778d87de 100644 --- a/packages/frontend/src/components/MkNote.vue +++ b/packages/frontend/src/components/MkNote.vue @@ -222,7 +222,7 @@ import { isEnabledUrlPreview } from '@/instance.js'; import { focusPrev, focusNext } from '@/utility/focus.js'; import { getAppearNote } from '@/utility/get-appear-note.js'; import { prefer } from '@/preferences.js'; -import { noteViewInterruptors } from '@/plugin.js'; +import { getPluginHandlers } from '@/plugin.js'; const props = withDefaults(defineProps<{ note: Misskey.entities.Note; @@ -248,6 +248,7 @@ const currentClip = inject<Ref<Misskey.entities.Clip> | null>('currentClip', nul const note = ref(deepClone(props.note)); // plugin +const noteViewInterruptors = getPluginHandlers('note_view_interruptor'); if (noteViewInterruptors.length > 0) { onMounted(async () => { let result: Misskey.entities.Note | null = deepClone(note.value); |