mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Don't allow duplicate registrations
This commit is contained in:
@ -50,8 +50,8 @@ export class MacrosParser {
|
||||
* @returns {IterableIterator<CustomMacro>}
|
||||
*/
|
||||
static [Symbol.iterator] = function* () {
|
||||
for (const macro of this.#macros.values()) {
|
||||
yield { key: macro, description: this.#descriptions.get(macro) };
|
||||
for (const macro of MacrosParser.#macros.keys()) {
|
||||
yield { key: macro, description: MacrosParser.#descriptions.get(macro) };
|
||||
}
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user