fix : update screenshot on front kinda work
This commit is contained in:
1 parent
26421190b1
commit
4342677344
3 files changed
+71
-51
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user