| 12345678910111213141516 |
- /**
- * @license
- * SPDX-License-Identifier: Apache-2.0
- */
- import { unwrapUrlOrSanitize } from '../../builders/url_sanitizer';
- /**
- * open calls {@link Window.open} on the given {@link Window}, given a
- * target {@link Url}.
- */
- export function open(win, url, target, features) {
- const sanitizedUrl = unwrapUrlOrSanitize(url);
- if (sanitizedUrl !== undefined) {
- return win.open(sanitizedUrl, target, features);
- }
- return null;
- }
|