mirror of
https://github.com/codl/forget
synced 2025-01-09 06:03:06 +01:00
51cf43d073
that way the whole dang cache doesnt get invalidated when the version changes
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
|
|
}
|
|
})
|
|
|
|
})();
|