diff options
| author | Dax Raad <[email protected]> | 2025-05-28 17:34:37 -0400 |
|---|---|---|
| committer | Dax Raad <[email protected]> | 2025-05-28 17:34:37 -0400 |
| commit | a22a2f0f374dbcd7efe891a8fe881b9a3758f15a (patch) | |
| tree | fa7894d16e55690ab8299d40dceadc74c7140548 /js/src/index.ts | |
| parent | be65ed6f88609a97126e770d1b4071f4e4599aae (diff) | |
| download | opencode-a22a2f0f374dbcd7efe891a8fe881b9a3758f15a.tar.gz opencode-a22a2f0f374dbcd7efe891a8fe881b9a3758f15a.zip | |
autoshare
Diffstat (limited to 'js/src/index.ts')
| -rw-r--r-- | js/src/index.ts | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/js/src/index.ts b/js/src/index.ts index 49920f534..9ba9535a1 100644 --- a/js/src/index.ts +++ b/js/src/index.ts @@ -40,11 +40,9 @@ cli console.log("Thinking..."); await Share.init(); const session = await Session.create(); - const shareID = await Session.share(session.id); - if (shareID) - console.log( - `Share ID: ${Share.URL.replace("api.", "")}/share?id=${session.id}`, - ); + console.log( + `Share ID: ${Share.URL.replace("api.", "")}/share?id=${session.id}`, + ); let index = 0; Bus.subscribe(Storage.Event.Write, async (payload) => { |
