Skip to content

Commit efd70fb

Browse files
Update version number to 1.4 in manifest.json and implement dynamic version display in popup.html and popup.js for improved user experience.
1 parent cd1c5af commit efd70fb

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

extension/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"manifest_version": 3,
33
"name": "LeetCode Helper",
4-
"version": "1.2",
4+
"version": "1.4",
55
"description": "Get personalized hints and code improvement suggestions on LeetCode problems using Gemini AI",
66
"permissions": ["activeTab", "storage", "tabs"],
77
"host_permissions": ["https://generativelanguage.googleapis.com/*"],

extension/popup.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,7 @@ <h3>Utkarsh Prajapati</h3>
599599
</a>
600600

601601
<div class="version-info">
602-
<p style="margin: 0;">Version: 1.3</p>
602+
<p id="version-display" style="margin: 0;"></p>
603603
<p style="margin: 4px 0 0 0;">© 2025 Utkarsh Prajapati. All rights reserved.</p>
604604
</div>
605605
</div>

extension/popup.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ document.addEventListener('DOMContentLoaded', function() {
33
setupEventListeners();
44
initializeUIFromCache();
55
updateGlider();
6+
displayVersion();
67
} catch (error) {
78
console.error('Error during popup initialization:', error);
89
showErrorMessage('Failed to initialize the extension popup. Please try again.');
@@ -196,6 +197,18 @@ function checkApiConfig() {
196197
}
197198
}
198199

200+
function displayVersion() {
201+
try {
202+
const manifest = chrome.runtime.getManifest();
203+
const versionDisplay = document.getElementById('version-display');
204+
if (versionDisplay) {
205+
versionDisplay.textContent = `Version: ${manifest.version}`;
206+
}
207+
} catch (error) {
208+
console.error('Error displaying version:', error);
209+
}
210+
}
211+
199212
function handleApiKeySubmit(event) {
200213
event.preventDefault();
201214

0 commit comments

Comments
 (0)