File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
view/base/templates/custom_widget Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,8 @@ use Jajuma\PotHoneySpam\Block\PowerToys\HyvaInlineCss;
88use Magento \Framework \Escaper ;
99/** @var HyvaInlineCss $block */
1010/** @var Escaper $escaper */
11+ $ powerToysHelper = $ this ->helper (\Jajuma \PowerToys \Helper \Data::class);
12+ $ nonce = $ powerToysHelper ->getNonce ();
1113?>
1214<div class="powertoys-widget-title"><?= 'Hyvä InlineCSS ' ?> </div>
1315<?php if ($ block ->isParentEnable ()): ?>
@@ -68,7 +70,7 @@ use Magento\Framework\Escaper;
6870 </a>
6971 </div>
7072 </div>
71- <script>
73+ <script <?= $ nonce ? ' nonce=" ' . $ nonce . ' " ' : '' ?> >
7274 var sizeInlineCssPot = document.querySelector('#info_size_css_content').innerText;
7375 var inlinecssStatusPot = document.querySelector('#info_inlinecss_status').innerText;
7476 var timeGeneratePot = document.querySelector('#info_time_generate').innerText;
You can’t perform that action at this time.
0 commit comments