mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-03 02:05:47 +02:00
refactor(frontend): use symbol for di
This commit is contained in:
@@ -50,6 +50,7 @@ import { deviceKind } from '@/utility/device-kind.js';
|
||||
import { focusTrap } from '@/utility/focus-trap.js';
|
||||
import { focusParent } from '@/utility/focus.js';
|
||||
import { prefer } from '@/preferences.js';
|
||||
import { DI } from '@/di.js';
|
||||
|
||||
function getFixedContainer(el: Element | null): Element | null {
|
||||
if (el == null || el.tagName === 'BODY') return null;
|
||||
@@ -94,7 +95,7 @@ const emit = defineEmits<{
|
||||
(ev: 'closed'): void;
|
||||
}>();
|
||||
|
||||
provide('modal', true);
|
||||
provide(DI.inModal, true);
|
||||
|
||||
const maxHeight = ref<number>();
|
||||
const fixed = ref(false);
|
||||
|
||||
Reference in New Issue
Block a user