File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -366,10 +366,10 @@ class UserMedia extends Despot {
366366
367367 public createCanvas ( ) {
368368 const canvas = document . createElement ( "canvas" ) ;
369- const dimension = this . getRawWidth ( true ) ;
369+ const rawWidthDimension = this . getRawWidth ( true ) ;
370370
371- if ( dimension . value ) {
372- canvas . width = dimension . value ;
371+ if ( rawWidthDimension . value ) {
372+ canvas . width = rawWidthDimension . value ;
373373 }
374374
375375 const rawHeight = this . getRawHeight ( true ) ;
@@ -405,7 +405,7 @@ class UserMedia extends Despot {
405405
406406 public getRawWidth ( responsive : boolean ) {
407407 let rawWidth = this . getVideoWidth ( ) ;
408- const dimension : Dimension = { unit : "px" } ;
408+ const widthDimension : Dimension = { unit : "px" } ;
409409
410410 if ( this . options . video . width || this . options . video . height ) {
411411 if ( ! responsive ) {
@@ -417,13 +417,13 @@ class UserMedia extends Despot {
417417 }
418418
419419 if ( responsive ) {
420- const dimension = this . recorder . limitWidth ( rawWidth ) ;
421- rawWidth = dimension ?. value ;
420+ const widthDimension = this . recorder . limitWidth ( rawWidth ) ;
421+ rawWidth = widthDimension ?. value ;
422422 }
423423
424- dimension . value = rawWidth ;
424+ widthDimension . value = rawWidth ;
425425
426- return dimension ;
426+ return widthDimension ;
427427 }
428428
429429 public getRawHeight ( responsive : boolean ) {
You can’t perform that action at this time.
0 commit comments