From 6bab1554fabfc89825aa4cb48ddab3b23fe57070 Mon Sep 17 00:00:00 2001 From: Denis Seleznev Date: Wed, 22 May 2024 12:28:26 +0300 Subject: [PATCH] Update index.html --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index 3c56653..0b4825f 100644 --- a/index.html +++ b/index.html @@ -7,7 +7,7 @@ var text = ''; text += 'MediaSource: ' + window.MediaSource; -text += 'MediaSource.isTypeSupported: ' + typeof MediaSource.isTypeSupported; +text += window.MediaSource ? ('MediaSource.isTypeSupported: ' + typeof window.MediaSource.isTypeSupported) : ''; document.querySelector('#output').innerHTML = text;