implement update notif into UI
This commit is contained in:
parent
e9445561fd
commit
918af38a79
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "calckey",
|
||||
"version": "12.119.0-calc.1-rc.7",
|
||||
"version": "12.119.0-calc.1-rc.8",
|
||||
"codename": "aqua",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
|
|
@ -19,8 +19,6 @@ export default define(meta, paramDef, async () => {
|
|||
await fetch('https://codeberg.org/api/v1/repos/thatonecalculator/calckey/releases?draft=false&pre-release=false&page=1&limit=1')
|
||||
.then((response) => response.json())
|
||||
.then((data) => {
|
||||
console.log(data[0]);
|
||||
console.log(data[0].tag_name);
|
||||
tag_name = data[0].tag_name;
|
||||
});
|
||||
|
||||
|
|
|
@ -69,7 +69,9 @@ os.api('admin/abuse-user-reports', {
|
|||
});
|
||||
|
||||
os.api('latest-version').then(res => {
|
||||
console.log(res);
|
||||
if (res?.tag_name !== version) {
|
||||
updateAvailable = true;
|
||||
}
|
||||
});
|
||||
|
||||
const NARROW_THRESHOLD = 600;
|
||||
|
|
Loading…
Reference in New Issue