Update app.py
Browse files
app.py
CHANGED
@@ -148,6 +148,13 @@ const monitorImageChange = (imageElement) => {
|
|
148 |
|
149 |
console.log('Now monitoring image changes for:', imageElement);
|
150 |
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
151 |
|
152 |
</script>
|
153 |
"""
|
|
|
148 |
|
149 |
console.log('Now monitoring image changes for:', imageElement);
|
150 |
};
|
151 |
+
|
152 |
+
const img = document.querySelector('img'); // Select the target image element
|
153 |
+
if (img) {
|
154 |
+
monitorImageChange(img);
|
155 |
+
} else {
|
156 |
+
console.error('No image found to monitor.');
|
157 |
+
}
|
158 |
|
159 |
</script>
|
160 |
"""
|