mirror of
https://github.com/end-4/dots-hyprland.git
synced 2026-06-11 01:39:26 -05:00
hefty: bar: time widget
This commit is contained in:
@@ -95,4 +95,15 @@ Singleton {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function findParentWithProperty(obj, propertyName) {
|
||||
let current = obj;
|
||||
while (current) {
|
||||
if (current.hasOwnProperty(propertyName)) {
|
||||
return current;
|
||||
}
|
||||
current = current.parent;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user