gosora/public/register.js

14 lines
270 B
JavaScript
Raw Normal View History

(() => {
addInitHook("end_init", () => {
fetch("/api/watches/")
.then(resp => {
if(resp.status!==200) {
console.log("err");
console.log("resp",resp);
return;
}
resp.text().then(data => eval(data));
})
2020-03-09 10:37:41 +00:00
.catch(err => console.log("err", err));
});
2020-03-09 10:37:41 +00:00
})()