File tree Expand file tree Collapse file tree 3 files changed +15
-2
lines changed
Expand file tree Collapse file tree 3 files changed +15
-2
lines changed Original file line number Diff line number Diff line change 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/*" ],
Original file line number Diff line number Diff 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 >
Original file line number Diff line number Diff 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+
199212function handleApiKeySubmit ( event ) {
200213 event . preventDefault ( ) ;
201214
You can’t perform that action at this time.
0 commit comments