@konemono/nostr-login 1.7.19 → 1.7.20

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.7.19",
3
+ "version": "1.7.20",
4
4
  "description": "",
5
5
  "main": "./dist/index.esm.js",
6
6
  "types": "./dist/index.d.ts",
@@ -72,7 +72,10 @@ class BannerManager extends EventEmitter {
72
72
  this.iframeReady = undefined;
73
73
  }
74
74
  this.banner.isLoading = false;
75
- this.banner.notify = { mode: '' };
75
+ // Don't clear timeout notification, user needs to see it
76
+ if (this.banner.notify?.mode !== 'timeout') {
77
+ this.banner.notify = { mode: '' };
78
+ }
76
79
  }
77
80
  }
78
81
 
@@ -86,10 +86,8 @@ class ProcessManager extends EventEmitter {
86
86
 
87
87
  this.callCount--;
88
88
 
89
- // Only emit onCallEnd if not timed out (timeout already handled cleanup)
90
- if (!isTimedOut) {
91
- this.emit('onCallEnd');
92
- }
89
+ // Always emit onCallEnd for cleanup
90
+ this.emit('onCallEnd');
93
91
 
94
92
  // Clear the timer if it's the one we created
95
93
  if (this.callTimer === localTimer) {