diff --git a/applications/luci-app-acme/htdocs/luci-static/resources/view/acme/acme.js b/applications/luci-app-acme/htdocs/luci-static/resources/view/acme/acme.js index 9b09508367..31556cb3a0 100644 --- a/applications/luci-app-acme/htdocs/luci-static/resources/view/acme/acme.js +++ b/applications/luci-app-acme/htdocs/luci-static/resources/view/acme/acme.js @@ -12,7 +12,7 @@ return view.extend({ L.resolveDefault(fs.list('/etc/ssl/acme/'), []).then(files => { let certs = []; for (let f of files) { - if (f.type == 'file' && f.name.match(/\.fullchain\.crt$/)) { + if (f.name.match(/\.fullchain\.crt$/)) { certs.push(f); } }