lint fixes

This commit is contained in:
syuilo 2025-03-20 19:00:09 +09:00
parent c02f0b3b33
commit 6015254e59
71 changed files with 160 additions and 160 deletions

View file

@ -67,7 +67,7 @@ const dev = _DEV_;
const notifications = ref<Misskey.entities.Notification[]>([]);
function onNotification(notification: Misskey.entities.Notification, isClient = false) {
if (document.visibilityState === 'visible') {
if (window.document.visibilityState === 'visible') {
if (!isClient && notification.type !== 'test') {
//
useStream().send('readNotification');

View file

@ -129,8 +129,8 @@ watch(store.r.menuDisplay, () => {
});
function toggleIconOnly() {
if (document.startViewTransition && prefer.s.animation) {
document.startViewTransition(() => {
if (window.document.startViewTransition && prefer.s.animation) {
window.document.startViewTransition(() => {
store.set('menuDisplay', iconOnly.value ? 'sideFull' : 'sideIcon');
});
} else {