mirror of
https://github.com/Universal-Omega/PortableInfobox.git
synced 2024-11-16 04:22:37 +00:00
18 lines
408 B
JavaScript
18 lines
408 B
JavaScript
'use strict';
|
|
|
|
require(['ponto', 'jquery'], function (ponto, $) {
|
|
var $infoboxBuilderIframe = $('#infoboxBuilderIframe');
|
|
|
|
if ($infoboxBuilderIframe.length) {
|
|
ponto.setTarget(
|
|
Ponto.TARGET_IFRAME,
|
|
window.location.origin,
|
|
$infoboxBuilderIframe[0].contentWindow
|
|
);
|
|
|
|
// load <iframe> content after ponto is set up
|
|
$infoboxBuilderIframe.attr('src', $infoboxBuilderIframe.data('src'));
|
|
|
|
}
|
|
});
|