embed.mjs 271 B

1234567891011
  1. /**
  2. * @license
  3. * SPDX-License-Identifier: Apache-2.0
  4. */
  5. import { unwrapResourceUrl } from '../../internals/resource_url_impl';
  6. /**
  7. * Sets the Src attribute from the given SafeUrl.
  8. */
  9. export function setSrc(embedEl, url) {
  10. embedEl.src = unwrapResourceUrl(url);
  11. }