mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-11-07 05:13:01 +00:00
Bind NIP-07 signer when reverting videos
This commit is contained in:
1 parent
0a8f3a7b05
commit
40795924be
1 file changed
+5
-1
+5
-1
@@ -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.",
|
||||
|
||||
Reference in new issue
Block a user