00ecfaadea2c40cc62b7a43e246384329e6ddb98
Parents: 907134b7a29177cb45aa461c549c004b1ae875af
From: Samuel Lidén Borell <samuel@kodafritt.se>
Date: Sat Jan 7 10:32:07 2023 +0700
config: make empty js= omit script tag
According to the cgitrc man page, an empty js= value should cause the script tag to be omitted. But instead, a script tag with an empty URL is emitted. The same applies to css. So, skip emitting a tag if the specified string is empty. Signed-off-by: Samuel Lidén Borell <samuel@kodafritt.se> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
ui-shared.c | +8/-0 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
|