@konemono/nostr-login 1.10.8 → 1.10.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@konemono/nostr-login",
3
- "version": "1.10.8",
3
+ "version": "1.10.10",
4
4
  "description": "",
5
5
  "main": "./dist/index.esm.js",
6
6
  "types": "./dist/index.d.ts",
package/src/index.ts CHANGED
@@ -145,6 +145,11 @@ export class NostrLoginInitializer {
145
145
  this.bannerManager.on('launch', (startScreen?: StartScreens) => {
146
146
  this.launch(startScreen);
147
147
  });
148
+
149
+ this.bannerManager.on('cancelTimeout', () => {
150
+ this.authNostrService.cancelSignerInit();
151
+ this.bannerManager.onCallEnd();
152
+ });
148
153
  }
149
154
 
150
155
  private openPopup(url: string) {
@@ -322,7 +327,7 @@ export class NostrLoginInitializer {
322
327
  };
323
328
 
324
329
  public cancelNeedAuth = () => {
325
- console.log("cancelNeedAuth");
330
+ console.log('cancelNeedAuth');
326
331
  this.fulfillCustomLaunchPromise();
327
332
  this.authNostrService.cancelNostrConnect();
328
333
  };
@@ -125,6 +125,10 @@ class BannerManager extends EventEmitter {
125
125
  }
126
126
  });
127
127
 
128
+ this.banner.addEventListener('handleCancelTimeout', () => {
129
+ this.emit('cancelTimeout');
130
+ });
131
+
128
132
  // this.banner.addEventListener('handleRetryConfirmBanner', () => {
129
133
  // const url = this.listNotifies.pop();
130
134
  // // FIXME go to nip05 domain?