Fix: eslint (MonitorStream.js)

pull/3986/head
IgorA100 2024-05-09 20:51:46 +03:00 committed by GitHub
parent 65a241fd6c
commit d72303de48
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 5 deletions

View File

@ -162,9 +162,9 @@ function MonitorStream(monitorData) {
img.style.width = 'auto';
$j(img).closest('.monitorStream')[0].style.overflow = 'auto';
} else {
const monitor_stream = $j(img).closest('.monitorStream');
const realWidth = monitor_stream.attr('data-width');
const realHeight = monitor_stream.attr('data-height');
//const monitor_stream = $j(img).closest('.monitorStream');
//const realWidth = monitor_stream.attr('data-width');
//const realHeight = monitor_stream.attr('data-height');
//const ratio = realWidth / realHeight;
//const imgWidth = $j(img)[0].offsetWidth + 4; // including border
img.style.width = '100%';