From 8340e1aef83dcc2e3212300d4add86330ac946cb Mon Sep 17 00:00:00 2001
From: inulute <110729127+inulute@users.noreply.github.com>
Date: Thu, 15 Feb 2024 22:09:05 +0530
Subject: [PATCH] Update initial.html
---
initial.html | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
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");