Fix using undefined $ function

pull/101/head
Thomas Marstrander 2021-05-12 12:27:57 +02:00
parent 1c12b7bbf7
commit 4599291d7c
1 changed files with 1 additions and 1 deletions

View File

@ -378,7 +378,7 @@ H5P.init = function (target) {
// Insert H5Ps that should be in iframes.
H5P.jQuery('iframe.h5p-iframe:not(.h5p-initialized)', target).each(function () {
const iframe = this;
const $iframe = $(iframe);
const $iframe = H5P.jQuery(iframe);
const contentId = $iframe.data('content-id');
const contentData = H5PIntegration.contents['cid-' + contentId];