From b8b25071c8e225903649065a1655857e42c3abf1 Mon Sep 17 00:00:00 2001 From: Ian Ramzy Date: Thu, 2 Apr 2020 15:00:25 -0400 Subject: [PATCH] add alert when pip before connected --- public/js/chat.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/public/js/chat.js b/public/js/chat.js index 1a83b2a..c31d079 100644 --- a/public/js/chat.js +++ b/public/js/chat.js @@ -694,6 +694,9 @@ function togglePictureInPicture() { }); } else { pipVideo.requestPictureInPicture().catch((error) => { + alert( + "You must be connected to another person to endter picture in picture." + ); logIt("Error entering pip."); logIt(error); });