mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-18 03:59:38 +00:00
Things were getting a bit complicated and slow with the old parser so I decided to continue #44's work on the main codebase.
15 lines
326 B
JavaScript
15 lines
326 B
JavaScript
'use strict';
|
|
|
|
const Parser = require('..');
|
|
|
|
class PlayerOverlay {
|
|
type = 'playerOverlayRenderer';
|
|
|
|
constructor(data) {
|
|
this.end_screen = Parser.parse(data.endScreen);
|
|
this.share_button = Parser.parse(data.shareButton);
|
|
this.add_to_menu = Parser.parse(data.addToMenu);
|
|
}
|
|
}
|
|
|
|
module.exports = PlayerOverlay; |