Remove constant definition from global scope in embed.js (#33107)
This commit is contained in:
parent
5532d1c2cb
commit
4239baa1f4
1 changed files with 2 additions and 5 deletions
|
@ -1,8 +1,5 @@
|
|||
// @ts-check
|
||||
|
||||
const allowedPrefixes = (document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT' && document.currentScript.dataset.allowedPrefixes) ? document.currentScript.dataset.allowedPrefixes.split(' ') : [];
|
||||
|
||||
(function () {
|
||||
(function (allowedPrefixes) {
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
|
@ -127,4 +124,4 @@ const allowedPrefixes = (document.currentScript && document.currentScript.tagNam
|
|||
container.appendChild(iframe);
|
||||
});
|
||||
});
|
||||
})();
|
||||
})((document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT' && document.currentScript.dataset.allowedPrefixes) ? document.currentScript.dataset.allowedPrefixes.split(' ') : []);
|
||||
|
|
Loading…
Reference in a new issue