change snacker close delay to be a little longer than sound effect duration
This commit is contained in:
parent
8d76c55539
commit
21c9acb8f0
1 changed files with 7 additions and 6 deletions
|
@ -16,12 +16,12 @@ interface Options {
|
||||||
* * `bottom-end`: Aligned to the bottom, right
|
* * `bottom-end`: Aligned to the bottom, right
|
||||||
*/
|
*/
|
||||||
placement?:
|
placement?:
|
||||||
| "top"
|
| "top"
|
||||||
| "top-start"
|
| "top-start"
|
||||||
| "top-end"
|
| "top-end"
|
||||||
| "bottom"
|
| "bottom"
|
||||||
| "bottom-start"
|
| "bottom-start"
|
||||||
| "bottom-end";
|
| "bottom-end";
|
||||||
/**
|
/**
|
||||||
* The text for the action button.
|
* The text for the action button.
|
||||||
*/
|
*/
|
||||||
|
@ -94,6 +94,7 @@ export const snacker = (opts: Options) => {
|
||||||
closeable: true,
|
closeable: true,
|
||||||
messageLine: 2,
|
messageLine: 2,
|
||||||
queue: "snacker",
|
queue: "snacker",
|
||||||
|
autoCloseDelay: 1600,
|
||||||
onOpen: () => {
|
onOpen: () => {
|
||||||
new Audio("https://no.ipv4.army/raw/Popcorn.ogg").play();
|
new Audio("https://no.ipv4.army/raw/Popcorn.ogg").play();
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Reference in a new issue