1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-06-01 05:04:18 +02:00

enhance(frontend): improve plugin management

This commit is contained in:
syuilo
2025-03-09 21:23:36 +09:00
parent 6cefabc6b6
commit 0402866b43
8 changed files with 131 additions and 144 deletions

View File

@@ -122,7 +122,7 @@ import { getStaticImageUrl } from '@/utility/media-proxy.js';
import { copyToClipboard } from '@/utility/copy-to-clipboard.js';
import { useRouter } from '@/router/supplier.js';
import { prefer } from '@/preferences.js';
import { pageViewInterruptors } from '@/plugin.js';
import { getPluginHandlers } from '@/plugin.js';
const router = useRouter();
@@ -151,6 +151,7 @@ function fetchPage() {
page.value = _page;
// plugin
const pageViewInterruptors = getPluginHandlers('page_view_interruptor');
if (pageViewInterruptors.length > 0) {
let result = deepClone(_page);
for (const interruptor of pageViewInterruptors) {