Skip to content

Commit

Permalink
new vchecker
Browse files Browse the repository at this point in the history
  • Loading branch information
owengregson committed Aug 29, 2024
1 parent 47eebf4 commit 37c6416
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 2 additions & 1 deletion js/version-check.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const LOCAL_VERSION_URL = chrome.runtime.getURL("manifest.json");
const REMOTE_VERSION_URL =
"https://github.com/owengregson/tranquill/raw/main/manifest.json";
"https://owengregson.github.io/tranquill/manifest.json";

self.addEventListener("activate", (event) => {
event.waitUntil(checkVersion());
Expand All @@ -24,6 +24,7 @@ async function versionCheck() {
return true; // New version is available
}
} catch (error) {
console.log(error);
return true; // Assume there's an update to prevent potential issues
}
return false; // No new version available
Expand Down
4 changes: 1 addition & 3 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
"manifest_version": 3,
"name": "tranquill",
"description": "Real-time automated typing bot for Google Chrome.",
"version": "1.0.2",
"developer": "owengregson",
"github_repo": "https://github.com/owengregson/tranquill",
"version": "1.0.3",
"icons": {
"16": "./assets/images/icon_16x.png",
"48": "./assets/images/icon_48x.png",
Expand Down

0 comments on commit 37c6416

Please sign in to comment.