mirror of
https://github.com/vladmandic/automatic
synced 2026-08-30 17:11:00 +02:00
+2
-2
@@ -46,8 +46,8 @@ function forceLogin() {
|
||||
})
|
||||
.then(async (res) => {
|
||||
const json = await res.json();
|
||||
let txt = ''
|
||||
if (res.status === 200) txt = 'login verified'
|
||||
let txt = '';
|
||||
if (res.status === 200) txt = 'login verified';
|
||||
else txt = `${res.status}: ${res.statusText} - ${json.detail}`;
|
||||
status.textContent = txt;
|
||||
console.log('login', txt);
|
||||
|
||||
Reference in New Issue
Block a user