fix(frontend): pull to refreshするたびにストリーミング全体の再接続が行われるのを修正

This commit is contained in:
syuilo
2023-11-10 17:52:50 +09:00
parent 253c0c42e2
commit 689b88b942
6 changed files with 5 additions and 28 deletions

View File

@@ -15,7 +15,7 @@ SPDX-License-Identifier: AGPL-3.0-only
<script lang="ts" setup>
import { onUnmounted } from 'vue';
import { useStream, isReloading } from '@/stream.js';
import { useStream } from '@/stream.js';
import { i18n } from '@/i18n.js';
import MkButton from '@/components/MkButton.vue';
import * as os from '@/os.js';
@@ -26,7 +26,6 @@ const zIndex = os.claimZIndex('high');
let hasDisconnected = $ref(false);
function onDisconnected() {
if (isReloading) return;
hasDisconnected = true;
}