Compare commits

...

1 Commits

Author SHA1 Message Date
Maxi Quoß d7c4a922e2 fix scan not working #59 2023-03-07 10:03:21 +01:00
+5 -1
View File
@@ -81,7 +81,11 @@
buttons.scan.state = 'failed';
});
fetch(`${dev ? 'http://localhost:8090' : ''}/api/upsnap/scan`)
fetch(`${dev ? 'http://localhost:8090' : ''}/api/upsnap/scan`, {
headers: {
Authorization: $pocketbase.authStore.baseToken
}
})
.then((res) => res.json())
.then((data) => {
if (data.message) {