Skip to content

Commit

Permalink
fix .ad extension hidden with adblockers
Browse files Browse the repository at this point in the history
  • Loading branch information
bnnm committed Sep 22, 2023
1 parent f8f105d commit 24298de
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend-printer.js
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ function Printer(cfg, db) {
$size.textContent = `${file.sizeview}`;
$date.textContent = `${file.time}`;
$crc.textContent = `${file.crc}`;
$name.classList.add(`hide-${file.ext}`);
$name.classList.add(`hide-ext-${file.ext}`);

if (file.dupe)
$item.classList.add('dupe');
Expand Down
2 changes: 1 addition & 1 deletion frontend-web.js
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ function Web(cfg, db, pt) {

if ($target.matches('.toggle-ext')) {
let ext = $target.dataset.fileext;
let $files = $overlay.getElementsByClassName(`hide-${ext}`);
let $files = $overlay.getElementsByClassName(`hide-ext-${ext}`);
for (let $file of $files) {
let $item = $file.closest('.filelist-item')
$item.classList.toggle('hidden');
Expand Down

0 comments on commit 24298de

Please sign in to comment.