1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-08-06 14:20:56 +00:00

Clean up a bunch of linting stuff. Clean up event listeners in tooltips to stop potential memory leaks.

This commit is contained in:
SirStendec 2018-04-02 03:30:22 -04:00
parent f506b512b4
commit 7ecd45fcfb
23 changed files with 70 additions and 79 deletions

View file

@ -352,7 +352,7 @@ export default class Chat extends Module {
}
* iterateRooms() {
*iterateRooms() {
const visited = new Set;
for(const id in this.room_ids)
@ -373,16 +373,15 @@ export default class Chat extends Module {
}
formatTime(time) {
formatTime(time) { // eslint-disable-line class-methods-use-this
if (!( time instanceof Date ))
time = new Date(time);
let hours = time.getHours();
const minutes = time.getMinutes(),
seconds = time.getSeconds(),
fmt = this.settings.get('chat.timestamp-format');
const minutes = time.getMinutes(); //,
// seconds = time.getSeconds(),
// fmt = this.settings.get('chat.timestamp-format');
if ( hours > 12 )
hours -= 12;