diff --git a/public/script.js b/public/script.js index 5e3ae655e..dd42bf12b 100644 --- a/public/script.js +++ b/public/script.js @@ -85,7 +85,7 @@ export { // API OBJECT FOR EXTERNAL WIRING window["TavernAI"] = {}; -const VERSION = "1.2.8"; +const VERSION = "1.1.0"; let converter = new showdown.Converter({ emoji: "true" }); let bg_menu_toggle = false; const systemUserName = "TavernAI"; diff --git a/server.js b/server.js index b8ff0d3c9..23f79ed71 100644 --- a/server.js +++ b/server.js @@ -198,7 +198,7 @@ app.get("/notes/*", function (request, response) { app.post("/getlastversion", jsonParser, function (request, response_getlastversion = response) { if (!request.body) return response_getlastversion.sendStatus(400); - const repo = 'TavernAI/TavernAI'; + const repo = 'SillyLossy/TavernAI'; let req; req = https.request({ hostname: 'github.com', @@ -207,7 +207,7 @@ app.post("/getlastversion", jsonParser, function (request, response_getlastversi }, (res) => { if (res.statusCode === 302) { const glocation = res.headers.location; - const versionStartIndex = glocation.lastIndexOf('@') + 1; + const versionStartIndex = glocation.lastIndexOf('/tag/') + 5; const version = glocation.substring(versionStartIndex); //console.log(version); response_getlastversion.send({ version: version });