forked from Shinonome/dots-hyprland
Fix it not working
This commit is contained in:
@@ -119,13 +119,17 @@ const Taskbar = (monitor) => Widget.Box({
|
|||||||
const client = Hyprland.clients[i];
|
const client = Hyprland.clients[i];
|
||||||
if (client["pid"] == -1) return;
|
if (client["pid"] == -1) return;
|
||||||
const appClass = substitute(client.class);
|
const appClass = substitute(client.class);
|
||||||
const ignoredAppsRegex = userOptions.dock.ignoredAppsRegex;
|
const ignoredAppsRegex = userOptions.dock.ignoredAppsRegex || [];
|
||||||
const isIgnored = false;
|
let isIgnored = false;
|
||||||
|
|
||||||
for (const regex of ignoredAppsRegex) {
|
for (const regex of ignoredAppsRegex) {
|
||||||
if (!appClass.match(regex)) continue;
|
try {
|
||||||
isIgnored = true;
|
const pattern = new RegExp(regex);
|
||||||
break;
|
if (pattern.test(appClass)) {
|
||||||
|
isIgnored = true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
} catch (e) {}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isIgnored) continue;
|
if (isIgnored) continue;
|
||||||
|
|||||||
Reference in New Issue
Block a user