stats.js: update for new popup

45ef4b60c97f71dac2525a533364820f74969497

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +3 -2Ignore whitespace
public/scripts/stats.js+3 -2
@@ -1,7 +1,8 @@
1// statsHelper.js1// statsHelper.js
2import { moment } from '../lib.js';2import { moment } from '../lib.js';
3import { getRequestHeaders, callPopup, characters, this_chid } from '../script.js';3import { getRequestHeaders, characters, this_chid } from '../script.js';
4import { humanizeGenTime } from './RossAscends-mods.js';4import { humanizeGenTime } from './RossAscends-mods.js';
5import { callGenericPopup, POPUP_TYPE } from './popup.js';
5import { registerDebugFunction } from './power-user.js';6import { registerDebugFunction } from './power-user.js';
67
7let charStats = {};8let charStats = {};
@@ -123,7 +124,7 @@ function createHtml(statsType, stats) {
123 html += createStatBlock('Character Words', stats.non_user_word_count);124 html += createStatBlock('Character Words', stats.non_user_word_count);
124 html += createStatBlock('Swipes', stats.total_swipe_count);125 html += createStatBlock('Swipes', stats.total_swipe_count);
125126
126 callPopup(html, 'text');127 return callGenericPopup(html, POPUP_TYPE.TEXT);
127}128}
128129
129/**130/**