(win)
| 55 | * @return {string} origin |
| 56 | */ |
| 57 | export function getWinOrigin(win) { |
| 58 | return win.origin || parseUrlDeprecated(win.location.href).origin; |
| 59 | } |
| 60 | |
| 61 | /** |
| 62 | * Returns a Location-like object for the given URL. If it is relative, |
no test coverage detected