]> gitweb.ps.run Git - ps-cgit/commitdiff
config: make empty js= omit script tag
authorSamuel Lidén Borell <samuel@kodafritt.se>
Sat, 7 Jan 2023 09:32:07 +0000 (10:32 +0100)
committerJason A. Donenfeld <Jason@zx2c4.com>
Tue, 10 Jan 2023 16:52:54 +0000 (17:52 +0100)
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>

No differences found