mirror of
https://github.com/codl/forget
synced 2025-01-24 12:41:57 +01:00
15 lines
270 B
JavaScript
15 lines
270 B
JavaScript
|
(function(){
|
||
|
|
||
|
if(!('fetch' in window)){
|
||
|
return
|
||
|
}
|
||
|
fetch('/api/about').then(r => r.json()).then(j => {
|
||
|
let ident = document.querySelector('#ident');
|
||
|
ident.textContent = j.service
|
||
|
if(j.version){
|
||
|
ident.textContent += ' ' + j.version
|
||
|
}
|
||
|
})
|
||
|
|
||
|
})();
|