lint fixes
This commit is contained in:
parent
c02f0b3b33
commit
6015254e59
71 changed files with 160 additions and 160 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue