#2159 Move debounce constants to a separate module

This commit is contained in:
Cohee
2024-04-28 19:47:53 +03:00
parent 94e9b8f4b1
commit 6ac6c7cfda
13 changed files with 35 additions and 26 deletions

View File

@ -4,7 +4,8 @@ import { callPopup, event_types, eventSource, is_send_press, main_api, substitut
import { is_group_generating } from './group-chats.js';
import { Message, TokenHandler } from './openai.js';
import { power_user } from './power-user.js';
import { debounce, waitUntilCondition, escapeHtml, debounce_timeout } from './utils.js';
import { debounce, waitUntilCondition, escapeHtml } from './utils.js';
import { debounce_timeout } from './constants.js';
function debouncePromise(func, delay) {
let timeoutId;