From ea32d03b80be8579e04364caef0ff7ae6d019527 Mon Sep 17 00:00:00 2001 From: David Kerr Date: Thu, 26 Apr 2018 14:30:41 -0400 Subject: [PATCH] nevermind --- js/plugins.js | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/js/plugins.js b/js/plugins.js index b81fa8b..7a09437 100644 --- a/js/plugins.js +++ b/js/plugins.js @@ -117,22 +117,8 @@ // The width and height of the captured photo. We will set the // width to the value defined here, but the height will be // calculated based on the aspect ratio of the input stream. - var width = 0 - function myFunction(x) { - if (x.matches) { // If media query matches - width = 240; - } else { - width = 480; - } - } - - var x = window.matchMedia("(max-width: 500px)") - myFunction(x) // Call listener function at run time - x.addListener(myFunction) // Attach listener function on state changes - - - // We will scale the photo width to this + var width = 480; // We will scale the photo width to this var height = 0; // This will be computed based on the input stream // |streaming| indicates whether or not we're currently streaming