1
0
mirror of https://github.com/hpware/news-analyze.git synced 2025-07-21 05:02:12 +08:00

11 lines
274 B
TypeScript

import currentVersion from "~/versionTag";
export default async function newestVersion() {
const current = currentVersion();
const req = await fetch("/api/version");
const res = await req.json();
if (current !== res.version) {
return false;
}
return true;
}