#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

@ -2,7 +2,8 @@ import { callPopup, main_api } from '../../../script.js';
import { getContext } from '../../extensions.js';
import { registerSlashCommand } from '../../slash-commands.js';
import { getFriendlyTokenizerName, getTextTokens, getTokenCountAsync, tokenizers } from '../../tokenizers.js';
import { resetScrollHeight, debounce, debounce_timeout } from '../../utils.js';
import { resetScrollHeight, debounce } from '../../utils.js';
import { debounce_timeout } from '../../constants.js';
function rgb2hex(rgb) {
rgb = rgb.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i);