File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed
app/code/Magento/PageBuilder
Block/Adminhtml/Html/Head
view/adminhtml/templates/head Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change 11
11
use Magento \Framework \View \Element \Template ;
12
12
13
13
/**
14
- * Class BabelPolyfill
15
- *
16
- * @package Magento\PageBuilder\Block
14
+ * @api
17
15
*/
18
16
class BabelPolyfill extends Template
19
17
{
Original file line number Diff line number Diff line change 6
6
7
7
/* @var $block \Magento\PageBuilder\Block\Adminhtml\Html\Head\BabelPolyfill */
8
8
9
- if ($ block ->shouldLoadPolyfill ()): ?>
10
- <script type="text/javascript" >
9
+ if ($ block ->shouldLoadPolyfill ()) : ?>
10
+ <script>
11
11
if (/MSIE \d|Trident.*rv:/.test(navigator.userAgent)) {
12
- document.write('<script src="<?= $ block ->getJsUrl () ?> "><\/script>');
12
+ document.write('<script src="<?= $ block ->escapeUrl ( $ block -> getJsUrl () ) ?> "><\/script>');
13
13
}
14
14
</script>
15
15
<?php endif ; ?>
You can’t perform that action at this time.
0 commit comments