Refactor status checks and indicators.

This commit is contained in:
Cohee
2023-11-08 02:52:03 +02:00
parent 00a1eaab28
commit b2629d9718
9 changed files with 245 additions and 334 deletions

View File

@@ -1,4 +1,5 @@
import {
abortStatusCheck,
getRequestHeaders,
getStoppingStrings,
novelai_setting_names,
@@ -91,6 +92,7 @@ export async function loadNovelSubscriptionData() {
const result = await fetch('/api/novelai/status', {
method: 'POST',
headers: getRequestHeaders(),
signal: abortStatusCheck.signal,
});
if (result.ok) {