Skip to content
This repository has been archived by the owner on Feb 8, 2022. It is now read-only.

Commit

Permalink
filter out extension version in update code
Browse files Browse the repository at this point in the history
  • Loading branch information
Snazzie committed Mar 28, 2020
1 parent 1f7d234 commit 4622d66
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 20 deletions.
24 changes: 6 additions & 18 deletions Extensions/Chrome/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,39 +2,27 @@
"manifest_version": 2,
"name": "Github DarkTheme",
"description": "This is the official extension that applies DarkThemeHub's Github Darktheme to supported github related pages. Source code is available in the repository ",
"version": "0.0.1",
"version": "0.0.3",
"browser_action": {
"default_icon": "icon16.png",
"default_popup": "popup.html"
},
"background": {
"scripts": [
"js/eventPage.js"
],
"scripts": ["js/eventPage.js"],
"persistent": false
},
"icons": {
"16": "icon16.png",
"48": "icon48.png",
"128": "icon128.png"
},
"permissions": [
"storage",
"notifications",
"tabs",
"alarms",
"<all_urls>"
],
"permissions": ["storage", "notifications", "tabs", "alarms", "<all_urls>"],
"content_scripts": [
{
"run_at": "document_start",
"matches": [
"<all_urls>"
],
"matches": ["<all_urls>"],
"all_frames": true,
"js": [
"js/injector.js"
]
"js": ["js/injector.js"]
}
]
}
}
2 changes: 1 addition & 1 deletion Extensions/Chrome/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "github-darktheme-chromeextension",
"version": "0.0.1",
"version": "0.0.3",
"description": "Github dark theme deployed via chrome extension",
"scripts": {
"build": "webpack --config webpack.prod.js && ncp manifest.json dist/manifest.json --clobber true && ncp src/extension-icons/ dist/ --clobber true && ncp src/html/popup.html dist/popup.html --clobber true",
Expand Down
2 changes: 1 addition & 1 deletion Extensions/Chrome/src/eventPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ async function tryInstallOrUpdate() {
});
}

const semVersionRegex = "^[0-9]*\.[0-9]*\..*"
const semVersionRegex = new RegExp(/^([0-9]*\.[0-9]*\..*)/)

async function getLatestReleaseVersion(): Promise<string> {
const response = await fetch(API_ADDRESS + `repos/${REPO_OWNER}/${REPO_NAME}/releases`);
Expand Down

0 comments on commit 4622d66

Please sign in to comment.