mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-14 07:35:35 +02:00
lint fixes
This commit is contained in:
@@ -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');
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user