use `
('video-capture' in detail.options ||
                'audio-capture' in detail.options)
` instead