mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-17 11:32:27 +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.
12 lines
275 B
JavaScript
12 lines
275 B
JavaScript
'use strict';
|
|
|
|
const NavigationEndpoint = require('./NavigationEndpoint');
|
|
|
|
class TextRun {
|
|
constructor(data) {
|
|
this.text = data.text;
|
|
this.endpoint = data.navigationEndpoint && new NavigationEndpoint(data.navigationEndpoint) || {};
|
|
}
|
|
}
|
|
|
|
module.exports = TextRun; |