Apply suggestions from code review of branch bugfix/streamContent_leaks

Co-authored-by: Beth Probert <beth_probert@outlook.com>
This commit is contained in:
Antonio Anaya 2026-06-04 11:03:38 +00:00
parent 6f9531059c
commit 70567feb0b

View file

@ -50,7 +50,7 @@ export default {
return this.ready && !this.disableStream;
},
streamImgUri: function () {
// FIX: Require BOTH visibility AND the enabled state
// Require BOTH visibility AND the enabled state
if (this.isVisible && this.streamEnabled) {
const url = new URL(`${this.baseUri}/camera/mjpeg_stream`);
url.searchParams.append("debugId", this.streamId);