add ability to conditionally wrap toast message in Mfm tag
This commit is contained in:
parent
c8535b5d26
commit
ce197bc2e6
2 changed files with 9 additions and 4 deletions
|
|
@ -211,9 +211,10 @@ export function pageWindow(path: string) {
|
|||
}, {}, 'closed');
|
||||
}
|
||||
|
||||
export function toast(message: string) {
|
||||
export function toast(message: string, renderMfm = false) {
|
||||
popup(MkToast, {
|
||||
message,
|
||||
renderMfm,
|
||||
}, {}, 'closed');
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue