@konemono/nostr-login 1.10.8 → 1.10.9

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.9",
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,10 @@ 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
+ });
148
152
  }
149
153
 
150
154
  private openPopup(url: string) {
@@ -322,7 +326,7 @@ export class NostrLoginInitializer {
322
326
  };
323
327
 
324
328
  public cancelNeedAuth = () => {
325
- console.log("cancelNeedAuth");
329
+ console.log('cancelNeedAuth');
326
330
  this.fulfillCustomLaunchPromise();
327
331
  this.authNostrService.cancelNostrConnect();
328
332
  };
@@ -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?