mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-05-26 20:49:55 +00:00
Skip loading if string is empty
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user