UNPKG

@steepleinc/youtubei.js

Version:

A JavaScript client for YouTube's private API, known as InnerTube.

20 lines 753 B
import NavigationEndpoint from '../NavigationEndpoint.js'; export default class RendererContext { constructor(data) { this.command_context = {}; this.accessibility_context = {}; if (!data) return; if (Reflect.has(data, 'commandContext')) { if (Reflect.has(data.commandContext, 'onTap')) { this.command_context.on_tap = new NavigationEndpoint(data.commandContext.onTap); } } if (Reflect.has(data, 'accessibilityContext')) { if (Reflect.has(data.accessibilityContext, 'label')) { this.accessibility_context.label = data.accessibilityContext.label; } } } } //# sourceMappingURL=RendererContext.js.map