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:
parent
f506b512b4
commit
7ecd45fcfb
23 changed files with 70 additions and 79 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue