@konemono/nostr-login 1.10.7 → 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/dist/index.esm.js +7 -7
- package/dist/index.esm.js.map +1 -1
- package/dist/unpkg.js +7 -7
- package/package.json +1 -1
- package/src/index.ts +5 -1
- package/src/modules/BannerManager.ts +4 -0
package/package.json
CHANGED
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(
|
|
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?
|