From 40795924be4870d99aae3c5054bccc275d13fe43 Mon Sep 17 00:00:00 2001 From: thePR0M3TH3AN <53631862+PR0M3TH3AN@users.noreply.github.com> Date: Sun, 19 Oct 2025 22:34:13 -0400 Subject: [PATCH] Bind NIP-07 signer when reverting videos --- js/nostr.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/js/nostr.js b/js/nostr.js index 1c004e80..4061534a 100644 --- a/js/nostr.js +++ b/js/nostr.js @@ -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.",