From 8cf11bccdeb74e3b7ee0dd359ca7669b05bb3836 Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Tue, 3 Jun 2025 00:06:34 +0300 Subject: [PATCH] horde.js: update for new popup --- public/scripts/horde.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/scripts/horde.js b/public/scripts/horde.js index 1cc5694a7..e62a0864b 100644 --- a/public/scripts/horde.js +++ b/public/scripts/horde.js @@ -1,6 +1,5 @@ import { amount_gen, - callPopup, getRequestHeaders, max_context, saveSettingsDebounced, @@ -11,6 +10,7 @@ import { delay } from './utils.js'; import { isMobile } from './RossAscends-mods.js'; import { autoSelectInstructPreset } from './instruct-mode.js'; import { t } from './i18n.js'; +import { callGenericPopup, POPUP_TYPE } from './popup.js'; export { horde_settings, @@ -271,7 +271,7 @@ async function generateHorde(prompt, params, signal, reportProgress) { await delay(CHECK_INTERVAL); } - callPopup('Horde request timed out. Try again', 'text'); + await callGenericPopup(t`Horde request timed out. Try again`, POPUP_TYPE.TEXT); throw new Error('Horde timeout'); }