mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Better random Ids for tags
This commit is contained in:
@@ -10,6 +10,7 @@ import {
|
|||||||
} from "../script.js";
|
} from "../script.js";
|
||||||
|
|
||||||
import { selected_group } from "./group-chats.js";
|
import { selected_group } from "./group-chats.js";
|
||||||
|
import { uuidv4 } from "./utils.js";
|
||||||
|
|
||||||
export {
|
export {
|
||||||
tags,
|
tags,
|
||||||
@@ -24,7 +25,7 @@ export {
|
|||||||
importTags,
|
importTags,
|
||||||
};
|
};
|
||||||
|
|
||||||
const random_id = () => Math.round(Date.now() * Math.random()).toString();
|
const random_id = () => uuidv4();
|
||||||
const TAG_LOGIC_AND = true; // switch to false to use OR logic for combining tags
|
const TAG_LOGIC_AND = true; // switch to false to use OR logic for combining tags
|
||||||
const CHARACTER_SELECTOR = '#rm_print_characters_block > div';
|
const CHARACTER_SELECTOR = '#rm_print_characters_block > div';
|
||||||
const GROUP_MEMBER_SELECTOR = '#rm_group_add_members > div';
|
const GROUP_MEMBER_SELECTOR = '#rm_group_add_members > div';
|
||||||
|
Reference in New Issue
Block a user