@samitouri / QOSami-HFS / commits / 9b7e7784

small optimization

Massimo Melina committed Oct 16, 2024 at 19:58 UTC 9b7e778403af2c3c770db758c0692d4bd70d3170
1 file changed +1 -1
plugins/download-counter/public/main.js
+1 -1
@@ -4,7 +4,7 @@
4 const label = HFS.t(["download counter", "Download counter"])
5 const inMenu = config.where === 'menu'
6 HFS.onEvent('additionalEntryDetails', ({ entry: { hits } }) =>
7 - hits && !inMenu && `<span class="download-counter" title="${label}">${hits}</span>`)
7 + hits && !inMenu && HFS.h('span', { className: "download-counter", title: label }, hits))
8
9 HFS.onEvent('fileMenu', ({ entry, props }) => {
10 if (!entry.isFolder)