fix : update screenshot on front kinda work

This commit is contained in:
martin legrand
2025-04-16 13:57:53 +02:00
parent 26421190b1
commit 4342677344
3 changed files with 71 additions and 51 deletions
+2 -1
View File
@@ -39,7 +39,8 @@ function App() {
const fetchScreenshot = async () => {
try {
const res = await axios.get('http://0.0.0.0:8000/screenshots/updated_screen.png', {
const timestamp = new Date().getTime();
const res = await axios.get(`http://0.0.0.0:8000/screenshots/updated_screen.png?timestamp=${timestamp}`, {
responseType: 'blob'
});
if (isMounted) {