Skip to content

Commit

Permalink
Add version number to extension name
Browse files Browse the repository at this point in the history
  • Loading branch information
asheroto committed Apr 15, 2024
1 parent bfd101d commit 039b6fd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion chrome/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@
"management"
],
"update_url": "https://clients2.google.com/service/update2/crx",
"version": "1.1.1"
"version": "1.2.0"
}
7 changes: 4 additions & 3 deletions chrome/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,16 @@
var comment = '';

var url = baseUrl + extension.id;
var nameAndVersion = `${htmlEscape(extension.name)} ${extension.version}`;

html += ' ';
html += '<li>';
html += '<a href="' + url + '" target="_blank" ';
html += 'title="' + htmlEscape(extension.description) + '">';
html += htmlEscape(extension.name) + '</a>';
html += nameAndVersion + '</a>';
html += '</li>\n';

comment += extension.name + '\n';
comment += nameAndVersion + '\n';
comment += url + '\n\n';

if (extension.enabled) {
Expand All @@ -83,7 +84,7 @@

// Generate a timestamp based on the user's locale
let timestamp = new Date().toLocaleString();

// Generate file timestamp YYYY-MM-DD
let fileTimestamp = new Date().toISOString().split('T')[0];

Expand Down

0 comments on commit 039b6fd

Please sign in to comment.