(link: string, target: string)
| 320 | * @param target blank or self |
| 321 | */ |
| 322 | export function windowOpen(link: string, target: string): void { |
| 323 | /* global window */ |
| 324 | if (target === '_blank' || target === 'blank') { |
| 325 | const blank = window.open(); |
| 326 | blank.opener = null; |
| 327 | blank.location.href = link; |
| 328 | } |
| 329 | else { |
| 330 | window.open(link, target); |
| 331 | } |
| 332 | } |
| 333 | |
| 334 | |
| 335 | export {getTextRect} from '../legacy/getTextRect'; |
no outgoing calls
no test coverage detected
searching dependent graphs…