mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-04-28 16:19:31 -07:00
fix: address fullscreen and n-plus-one review notes
This commit is contained in:
@@ -353,8 +353,12 @@ export class HyprlandWindowTracker extends BaseWindowTracker {
|
||||
return null;
|
||||
}
|
||||
|
||||
const output = execSync('hyprctl -j monitors', { encoding: 'utf-8' });
|
||||
return parseHyprctlMonitors(output);
|
||||
try {
|
||||
const output = execSync('hyprctl -j monitors', { encoding: 'utf-8' });
|
||||
return parseHyprctlMonitors(output);
|
||||
} catch {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
private getWindowCommandLine(pid: number): string | null {
|
||||
|
||||
Reference in New Issue
Block a user