Skip loading if string is empty
This commit is contained in:
parent
9351d7ebeb
commit
5a14125e7b
1 changed files with 4 additions and 0 deletions
|
|
@ -16,6 +16,10 @@
|
|||
let value = "";
|
||||
let output = "";
|
||||
async function process(str: string) {
|
||||
if (value === "") {
|
||||
output = "";
|
||||
return
|
||||
}
|
||||
let result = await minify(str)
|
||||
if (typeof result.code == "string") {
|
||||
output = result.code
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue