File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ export async function preloadIframe() {
2626const authServiceIframeMap : WeakMap < object , HTMLIFrameElement > = new WeakMap ( ) ;
2727
2828const iframeCleanupRegistry = new FinalizationRegistry ( ( heldValue : HTMLIFrameElement ) => {
29- log . info ( "Cleaning up iframe" ) ;
29+ log . info ( "Cleaning up iframe" , heldValue ) ;
3030
3131 // Remove iframe from DOM
3232 if ( heldValue && heldValue . parentNode ) {
@@ -62,12 +62,12 @@ export class AuthProvider {
6262 }
6363
6464 getAuthServiceIframe ( ) : HTMLIFrameElement {
65- return authServiceIframeMap . get ( this . embedNonce ) as HTMLIFrameElement ;
65+ return authServiceIframeMap . get ( this ) as HTMLIFrameElement ;
6666 }
6767
6868 registerAuthServiceIframe ( iframe : HTMLIFrameElement ) {
69- authServiceIframeMap . set ( this . embedNonce , iframe ) ;
70- iframeCleanupRegistry . register ( this . embedNonce , iframe ) ;
69+ authServiceIframeMap . set ( this , iframe ) ;
70+ iframeCleanupRegistry . register ( this , iframe ) ;
7171 }
7272
7373 async init ( { network, clientId } : { network : WEB3AUTH_NETWORK_TYPE ; clientId : string } ) : Promise < void > {
You can’t perform that action at this time.
0 commit comments