-
-
Save parzibyte/ad1e05134cb890d8dd70b070a9f99ad4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const tieneSoporteUserMedia = () => | |
!!(navigator.mediaDevices.getUserMedia) | |
// Si no soporta... | |
// Amable aviso para que el mundo comience a usar navegadores decentes ;) | |
if (typeof MediaRecorder === "undefined" || !tieneSoporteUserMedia()) | |
return alert("Tu navegador web no cumple los requisitos; por favor, actualiza a un navegador decente como Firefox o Google Chrome"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment