mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-07-04 12:47:04 +00:00
* Prefer `c ? x : y` over `c && x || y` * Avoid unnecessary asssignment expressions * Prefer switch statements over object lookup tables * Add an .editorconfig * Fix style issues * Fix mentioned issues Co-authored-by: bob <bob.varioa@gmail.com>
14 lines
350 B
JavaScript
14 lines
350 B
JavaScript
'use strict';
|
|
|
|
const MetadataBadge = require('./MetadataBadge');
|
|
const Thumbnail = require('./Thumbnail');
|
|
|
|
class LiveChatAuthorBadge extends MetadataBadge {
|
|
constructor(data) {
|
|
super(data);
|
|
|
|
this.custom_thumbnail = data.customThumbnail ? Thumbnail.fromResponse(data.customThumbnail) : null;
|
|
}
|
|
}
|
|
|
|
module.exports = LiveChatAuthorBadge; |