mirror of
https://github.com/vale981/tridactyl
synced 2025-03-06 01:51:40 -05:00
Fix #2339: protect users from containerdelete with no arguments
This commit is contained in:
parent
3a80fd03cb
commit
dfd8236a6c
1 changed files with 1 additions and 0 deletions
|
@ -2643,6 +2643,7 @@ export async function containercreate(name: string, color?: string, icon?: strin
|
|||
*/
|
||||
//#background
|
||||
export async function containerdelete(name: string) {
|
||||
if (name == undefined) return
|
||||
await containerclose(name)
|
||||
await Container.remove(name)
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue