File tree Expand file tree Collapse file tree 4 files changed +796
-473
lines changed
Expand file tree Collapse file tree 4 files changed +796
-473
lines changed Original file line number Diff line number Diff line change 2323 < body >
2424 < div id ="root "> </ div >
2525 < div id ="modal-root "> </ div >
26+ < div id ="version-info "> </ div >
2627 < script type ="module " src ="/src/main.tsx "> </ script >
28+ < script >
29+ fetch ( '/package.json' )
30+ . then ( response => response . json ( ) )
31+ . then ( data => {
32+ const versionInfo = document . getElementById ( 'version-info' ) ;
33+ versionInfo . textContent = `Version: ${ data . version } ` ;
34+ versionInfo . style . position = 'fixed' ;
35+ versionInfo . style . bottom = '10px' ;
36+ versionInfo . style . right = '10px' ;
37+ versionInfo . style . fontSize = '12px' ;
38+ versionInfo . style . color = '#888' ;
39+ } )
40+ . catch ( error => console . error ( 'Error fetching version:' , error ) ) ;
41+ </ script >
2742 </ body >
2843</ html >
Original file line number Diff line number Diff line change 11{
22 "name" : " better-chatgpt" ,
33 "private" : true ,
4- "version" : " 1.15 .0" ,
4+ "version" : " 1.16 .0" ,
55 "type" : " module" ,
66 "homepage" : " ./" ,
77 "main" : " electron/index.cjs" ,
You can’t perform that action at this time.
0 commit comments