mirror of
https://github.com/mastodon/mastodon.git
synced 2024-12-11 13:10:37 +00:00
Remove constant definition from global scope in embed.js (#33107)
This commit is contained in:
parent
4016382e91
commit
49cd684b8d
|
@ -1,8 +1,5 @@
|
||||||
// @ts-check
|
// @ts-check
|
||||||
|
(function (allowedPrefixes) {
|
||||||
const allowedPrefixes = (document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT' && document.currentScript.dataset.allowedPrefixes) ? document.currentScript.dataset.allowedPrefixes.split(' ') : [];
|
|
||||||
|
|
||||||
(function () {
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -127,4 +124,4 @@ const allowedPrefixes = (document.currentScript && document.currentScript.tagNam
|
||||||
container.appendChild(iframe);
|
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