diff --git a/initial.html b/initial.html index b597ed8..d04c3be 100644 --- a/initial.html +++ b/initial.html @@ -5,7 +5,6 @@ -
@@ -39,12 +38,10 @@

Choose an AI to Navigate

} async function checkForUpdates() { - const currentVersion = "2.0.0"; - const rawGithubContentUrl = "https://raw.githubusercontent.com/inulute/perplexity-ai-app/main/package.json"; try { - const response = await fetch(rawGithubContentUrl); - const data = await response.json(); - const latestVersion = data.version; + const currentVersion = await fetch('crrtver.inu').then(response => response.text()); + const response = await fetch('https://raw.githubusercontent.com/inulute/perplexity-ai-app/main/package.json'); + const { version: latestVersion } = await response.json(); const versionDisplay = document.getElementById("versionDisplay");