Skip to content

armgit / moli

Public Imported from GitHub
0

Best headless browser for AI agents. Lite, Fast, High-Compatibility. Built in Rust

475 B
Raw Blame
use super::super::*;

pub(super) fn install_media_template_accessors<'s, 'i>(
    scope: &mut v8::PinScope<'s, 'i, ()>,
    template: v8::Local<'s, v8::ObjectTemplate>,
    installer: SpecializedTemplateInstaller,
) -> bool {
    let _ = (scope, template);
    matches!(
        installer,
        SpecializedTemplateInstaller::HtmlMediaElement
            | SpecializedTemplateInstaller::HtmlAudioElement
            | SpecializedTemplateInstaller::HtmlVideoElement
    )
}