mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
load user
This commit is contained in:
19
resources/js/nostr/nostrStart.js
Normal file
19
resources/js/nostr/nostrStart.js
Normal file
@@ -0,0 +1,19 @@
|
||||
import {ndkInstance} from "./ndk/instance.js";
|
||||
|
||||
export default (livewireComponent) => ({
|
||||
|
||||
|
||||
|
||||
async init() {
|
||||
|
||||
await ndkInstance(this).init();
|
||||
|
||||
console.log(this.$store.ndk.user);
|
||||
|
||||
if (this.$store.ndk.user) {
|
||||
this.$wire.setUser(this.$store.ndk.user);
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
});
|
||||
Reference in New Issue
Block a user