mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
stats.js: update for new popup
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
// statsHelper.js
|
||||
import { moment } from '../lib.js';
|
||||
import { getRequestHeaders, callPopup, characters, this_chid } from '../script.js';
|
||||
import { getRequestHeaders, characters, this_chid } from '../script.js';
|
||||
import { humanizeGenTime } from './RossAscends-mods.js';
|
||||
import { callGenericPopup, POPUP_TYPE } from './popup.js';
|
||||
import { registerDebugFunction } from './power-user.js';
|
||||
|
||||
let charStats = {};
|
||||
@@ -123,7 +124,7 @@ function createHtml(statsType, stats) {
|
||||
html += createStatBlock('Character Words', stats.non_user_word_count);
|
||||
html += createStatBlock('Swipes', stats.total_swipe_count);
|
||||
|
||||
callPopup(html, 'text');
|
||||
return callGenericPopup(html, POPUP_TYPE.TEXT);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user