stats.js: update for new popup
| @@ -1,7 +1,8 @@ | ||
| 1 | 1 | // statsHelper.js |
| 2 | 2 | import { moment } from '../lib.js'; |
| 3 | 3 | import { getRequestHeaders, callPopup, characters, this_chid } from '../script.js'; |
| 4 | 4 | import { humanizeGenTime } from './RossAscends-mods.js'; |
| 5 | +import { callGenericPopup, POPUP_TYPE } from './popup.js'; | |
| 5 | 6 | import { registerDebugFunction } from './power-user.js'; |
| 6 | 7 | |
| 7 | 8 | let charStats = {}; |
| @@ -123,7 +124,7 @@ function createHtml(statsType, stats) { | ||
| 123 | 124 | html += createStatBlock('Character Words', stats.non_user_word_count); |
| 124 | 125 | html += createStatBlock('Swipes', stats.total_swipe_count); |
| 125 | 126 | |
| 126 | 127 | callPopupreturn callGenericPopup(html, 'text'POPUP_TYPE.TEXT); |
| 127 | 128 | } |
| 128 | 129 | |
| 129 | 130 | /** |