embed.js 417 B

123456789101112131415
  1. "use strict";
  2. /**
  3. * @license
  4. * SPDX-License-Identifier: Apache-2.0
  5. */
  6. Object.defineProperty(exports, "__esModule", { value: true });
  7. exports.setSrc = void 0;
  8. var resource_url_impl_1 = require("../../internals/resource_url_impl");
  9. /**
  10. * Sets the Src attribute from the given SafeUrl.
  11. */
  12. function setSrc(embedEl, url) {
  13. embedEl.src = (0, resource_url_impl_1.unwrapResourceUrl)(url);
  14. }
  15. exports.setSrc = setSrc;