Bind NIP-07 signer when reverting videos

This commit is contained in:
thePR0M3TH3AN committed 2025-10-19 22:34:13 -04:00
1 parent 0a8f3a7b05
commit 40795924be
1 file changed
+5 -1
+5 -1
View File
@@ -6821,7 +6821,11 @@ export class NostrClient {
content: JSON.stringify(contentObject),
};
const extensionSigner = window?.nostr?.signEvent;
const extension = window?.nostr;
const extensionSigner =
extension && typeof extension.signEvent === "function"
? extension.signEvent.bind(extension)
: null;
if (typeof extensionSigner !== "function") {
const error = new Error(
"A NIP-07 extension with signEvent support is required to revert videos.",