File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 233233 </ div >
234234 </ div >
235235 < div style ="flex-shrink:0;padding:12px 16px;border-top:1px solid #49483e;background:#3e3d32;text-align:center;font-size:0.75rem; ">
236- < a href ="https://nostrkey.com " target =" _blank " rel =" noopener " style ="color:#b0b0a8;text-decoration:none; "> NostrKey.com</ a >
236+ < a id =" footer-home-link " href ="https://nostrkey.com " style ="color:#b0b0a8;text-decoration:none;cursor:pointer ; "> NostrKey.com</ a >
237237 < span style ="color:#49483e;margin:0 6px; "> |</ span >
238- < a href ="https://nostrkey.com/terms.html " target =" _blank " rel =" noopener " style ="color:#b0b0a8;text-decoration:none; "> Ts & Cs</ a >
238+ < a id =" footer-terms-link " href ="https://nostrkey.com/terms.html " style ="color:#b0b0a8;text-decoration:none;cursor:pointer ; "> Ts & Cs</ a >
239239 < span style ="color:#49483e;margin:0 6px; "> |</ span >
240- < a href ="https://nostrkey.com/support.html#donate " target =" _blank " rel =" noopener " style ="color:#a6e22e;text-decoration:none; "> Donate</ a >
240+ < a id =" footer-donate-link " href ="https://nostrkey.com/support.html#donate " style ="color:#a6e22e;text-decoration:none;cursor:pointer ; "> Donate</ a >
241241 </ div >
242242 </ div >
243243
Original file line number Diff line number Diff line change @@ -711,6 +711,15 @@ async function doUnlock() {
711711async function doLock ( ) {
712712 await api . runtime . sendMessage ( { kind : 'lock' } ) ;
713713 state . isLocked = true ;
714+ // Refresh locked access card with current profile
715+ try {
716+ const info = await api . runtime . sendMessage ( { kind : 'getActiveProfileInfo' } ) ;
717+ if ( info && typeof info === 'object' ) {
718+ state . lockedProfileName = info . name || 'Unnamed Profile' ;
719+ state . lockedProfileNpub = info . npub || '' ;
720+ state . lockedProfileHasKeys = ! ! info . hasKeys ;
721+ }
722+ } catch ( _ ) { }
714723 render ( ) ;
715724}
716725
@@ -980,6 +989,17 @@ function bindEvents() {
980989 await doUnlock ( ) ;
981990 } ) ;
982991
992+ // Lock screen footer links — reuse same tab
993+ [ 'footer-home-link' , 'footer-terms-link' , 'footer-donate-link' ] . forEach ( id => {
994+ const el = $ ( id ) ;
995+ if ( el ) {
996+ el . addEventListener ( 'click' , ( e ) => {
997+ e . preventDefault ( ) ;
998+ window . open ( el . href , 'nostrkey-options' ) ;
999+ } ) ;
1000+ }
1001+ } ) ;
1002+
9831003 // Reset flow handlers
9841004 if ( elements . forgotPasswordBtn ) {
9851005 elements . forgotPasswordBtn . addEventListener ( 'click' , ( ) => {
You can’t perform that action at this time.
0 commit comments