mirror of
https://github.com/mattjaybe/SillyTavern-EchoChamber.git
synced 2026-04-28 03:20:39 +00:00
Update index.js
This commit is contained in:
parent
c0a58c6430
commit
3424ef8ac7
1 changed files with 4 additions and 6 deletions
10
index.js
10
index.js
|
|
@ -2540,12 +2540,10 @@ username: message
|
|||
parent.find('.ec_menu_item').removeClass('selected');
|
||||
jQuery(this).addClass('selected');
|
||||
updateStyleIndicator();
|
||||
if (settings.enabled && !settings.paused) {
|
||||
const styleObj = getAllStyles().find(s => s.val === val);
|
||||
const styleName = styleObj ? styleObj.label : val;
|
||||
if (typeof toastr !== 'undefined') toastr.info(`Style: ${styleName}`);
|
||||
generateDebounced();
|
||||
}
|
||||
// Show toast notification about style change
|
||||
const styleObj = getAllStyles().find(s => s.val === val);
|
||||
const styleName = styleObj ? styleObj.label : val;
|
||||
if (typeof toastr !== 'undefined') toastr.info(`Style: ${styleName}`);
|
||||
} else if (parent.hasClass('ec_layout_menu')) {
|
||||
if (val === 'popout') {
|
||||
// Open popout window
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue