()
| 133 | * A safe form of location.href |
| 134 | */ |
| 135 | export function getLocationHref(): string { |
| 136 | try { |
| 137 | return WINDOW.document.location.href; |
| 138 | } catch { |
| 139 | return ''; |
| 140 | } |
| 141 | } |
| 142 | |
| 143 | /** |
| 144 | * Given a DOM element, traverses up the tree until it finds the first ancestor node |
no outgoing calls
no test coverage detected