Replies: 1 comment
-
const title = await arg("title")
const message = await arg("message")
notify({ title, message }) The issue is that notifier has event listeners that hang around since it's possible to click/interact with the notification and get data back. For now, you can use the following to hide the prompt immediately: const title = await arg("title")
const message = await arg("message")
notify({ title, message })
send("HIDE_APP") I'll keep thinking about the notify API since I imagine most people won't care about using event listeners. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is it possible to have multiple
await arg()
statements in a script?When I run this code the second prompt for input stays open, which is not what I want.
Or is that a bug?
Beta Was this translation helpful? Give feedback.
All reactions